You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to know how is the Graph is actually represented in memory for some algorithms written here in this framework. I wanted to run some algorithms for my school project where the input to the algorithm is a graph.
I can see the input data provided here but I can't conclude the representation of the Graph(Although, it's written 'Adjacency Graph' on the top, but is it 'Adjacency List' or what?). It seems like just vertices of the graph is provided in the input file, but how do I form edges in the Graph?
One of the main goals of Ligra is to abstract away implementation specific details about how the graph is represented (Is the graph compressed/uncompressed? Is it directed/undirected?)
But still, I wanted to pass my own graph input which is represented as Adjacency List? Can you please tell how is the Graph formed from the data given below? How can I form Adjacency List out of it?
Basically, the format consists of the header, which contains three lines ("adjacency graph", n, and m) followed by n vertex offsets (the index of each vertex's edges in the edge array), followed by the edge array.
If you have files in a different format it should be straightforward to write a converter that outputs a file in this CSR format. Note that for directed graphs you only represent the out-edges of each vertex --- the in-edges (the transpose) gets computed in-memory once the graph has been loaded.
I wanted to know how is the Graph is actually represented in memory for some algorithms written here in this framework. I wanted to run some algorithms for my school project where the input to the algorithm is a graph.
I can see the input data provided here but I can't conclude the representation of the Graph(Although, it's written 'Adjacency Graph' on the top, but is it 'Adjacency List' or what?). It seems like just vertices of the graph is provided in the input file, but how do I form edges in the Graph?
In the docs here I see that:
But still, I wanted to pass my own graph input which is represented as
Adjacency List
? Can you please tell how is the Graph formed from the data given below? How can I form Adjacency List out of it?These are the first few lines of the input file written here.
Or can you please tell how to pass our own graph (represented as Adjacency List) as the input to the algorithms written here.
Example: How do I pass the below graph in the input?
If I have to represent the above graph in memory then I would write the file something like this:
So how can I pass this representation(or modify this representation) to work with the algorithms written here.
The text was updated successfully, but these errors were encountered: