snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 796 forks source link

No way of labeling edge weights with GraphViz. #91

Open cykacookie opened 7 years ago

cykacookie commented 7 years ago

Being able to label edge weights with GraphViz would be a great feature.

tuantmtb commented 6 years ago

I think so, too. How could I set weight and label per edge?

roks commented 6 years ago

Edge labels are currently not supported. One option is to use SNAP to generate a GraphViz file, add labels in the file with an editor or a script and run GraphViz from the command line.

cykacookie commented 6 years ago

I cobbled together an alternate SaveGViz method shortly after I posted this issue. @tuantmtb here is the diff of my fork if you need to label edge weights. It's been over a year since I touched that code, but I added a "weight" attribute to each edge here, and read it into the fprintf in SaveGviz2.

tuantmtb commented 6 years ago

thank you so much 👍 @dacoconuttman