safi50 opened a new issue, #935:
URL: https://github.com/apache/age/issues/935

   I was trying to load sample data to my graph for some testing purposes. 
While creating  a sample 100 vertices using the following command: 
   ```
   SELECT * FROM create_complete_graph('test', 100, 'e', 'v');
   ```
   It creates a 100 sample vertices as expected:
   ```
   testdb=# select * from cypher('test', $$ match (n) return count(n)  $$) as ( 
a agtype);
     a  
   -----
    100
   (1 row)
   ```
   Whereas, it creates **9900** edges for those 100 sample vertices. 
   ```
   testdb=# select * from cypher('test', $$ match ()-[r]-()  return count (r)  
$$) as ( a agtype);
     a   
   ------
    9900
   (1 row)
   ```
   I found that this is because each vertex has an edge connection to every 
other node in the graph making the total edges 
   as `(n-1) * n` where n is the total number of vertices in the graph. 
   
   What I am trying to figure out is, is there any way to create a custom 
number of edges as we do for the vertices.  For example, if i'm creating a 100 
nodes , i would also like to set a custom number of edges i want in the graph. 
The edge connections, however, can be random. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to