age
age copied to clipboard
Function age_create_barbell_graph doesn't behave properly when called more than once.
Describe the bug When called more than once, the created complete graphs doesn't connect as a Barbell graph, according to the following figure:

How are you accessing AGE (Command line, driver, etc.)?
- Accessing AGE through
psqlinterface and age-viewer.
What is the command that caused the error?
Just calling the function twice exposes the bug:
SELECT age_create_barbell_graph('barbell',5,0,'vlabel','{}','elabel','{}');
SELECT age_create_barbell_graph('barbell',7,0,'vlabel','{}','elabel','{}');
Expected behavior Each call of the function should create two complete graphs connected with a bridge between them. For reference.
Environment:
- Version: [PostgreSQL 11.19] [Apache AGE 1.2.0]