Giter Club home page Giter Club logo

Comments (6)

gurbinder533 avatar gurbinder533 commented on July 30, 2024 1

Hi Vaastav,

I was not sure which benchmark you wanted to run, therefore I suggested you to add random weights as benchmarks like sssp need edge weights.
The main point above was to pass the right value for edgeType for the conversion of edge lists. If you don't want weights you can use:
./graph-convert -edgelist2gr -edgeType=void twitter_rv.edgelist twitter_rv.gr
./graph-convert -gr2sortedparentdegreegr -edgeType=void twitter_rv.gr twitter_rv.sortedgr

Regarding connectedcomponent, algorithm expects the symmetric graph. Use the following command to convert gr to a symmetric graph:
./graph-convert -gr2sgr -edgeType=void twitter_rv.gr twitter_rv.sgr

--
Gurbinder

from galois.

gurbinder533 avatar gurbinder533 commented on July 30, 2024

Hello Vaastav,
Thank you for using Galois.
Did you use the following command to convert twitter_rv edgelist to gr format before using -gr2sortedparentdegreegr option on it?

./graph-convert -edgelist2gr -edgeType=void twitter_rv.edgelist twitter_rv.gr

I have noticed that twitter_rv is an unweighted edgelist with 2 columns (sourceID destinationID), therefore edgeType void is required.
After converting to an unweighted .gr format you can add weights using -gr2randomweightgr option:

./graph-convert -gr2randomweightgr -edgeType=uint32 twitter_rv.gr twitter_rv.wgr

Try converting graph using the above-mentioned steps and then use -gr2sortedparentdegreegr:

./graph-convert -gr2sortedparentdegreegr -edgeType=uint32 twitter_rv.wgr twitter_rv.sortedwgr

See if this works. If not, please let us know.


Gurbinder

from galois.

vaastav avatar vaastav commented on July 30, 2024

Hello Gurbinder,

Thank you for responding. I tried your commands on another unweighted graph which I had previously tested on as well (cit-patents). The end result is still the same as before. The conversion runs into a segmentation fault.
Regardless I am not sure as to why I need to convert an unweighted graph to a graph with random weights before I can sort the nodes in the graph according to the order of the parent's degree.

Regarding the edgetype=void usage, I did not use this initially but I was able to successfully convert the graph into bfs-sorted order and degree-sorted order and was able to successfully run connected components with -noverify option.

from galois.

vaastav avatar vaastav commented on July 30, 2024

Link to the cit-Patents dataset : https://snap.stanford.edu/data/cit-Patents.html

I also get verification failures when I run lonestar/connectedcomponents/connectedcomponents on every graph so I have to use the -noverify option. It seems to me that the verification might be broken but I am not so sure if this is at all related to how I am converting the edgelists.

from galois.

vaastav avatar vaastav commented on July 30, 2024

I had initially tried these 2 commands:

./graph-convert -edgelist2gr -edgeType=void twitter_rv.edgelist twitter_rv.gr 
./graph-convert -gr2sortedparentdegreegr -edgeType=void twitter_rv.gr twitter_rv.sortedgr_

and it resulted in a Segfault as I have mentioned before. This segfault is not specific to a dataset but seems to happen to every dataset I have tried.

Regarding connectedcomponent, I tried using the symmetric graph like you mentioned without the -noverify option and it still resulted in a "verification failed" error.

from galois.

l-hoang avatar l-hoang commented on July 30, 2024

Hello @vaastav.

I have just pushed a fix for the segmentation fault issue that you were running into with gr2sortedparentdegreegr: there was a mistake in the iterators being used during the sort. Thank you very much for bringing this to our attention as well as for providing a test case I was able to use to replicate the error for debugging.

Since the original problem raised by this issue has been resolved, I am closing this issue. If the issue persists, please let me know and I'll reopen the issue.

Regarding the connected components issue: if it is still a problem, please open another issue and we can address it there.

Thank you,
Loc

from galois.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.