Incidents node are missing and other questions

17 views
Skip to first unread message

ivan.gu...@gmail.com

unread,
Jan 14, 2015, 3:25:43 PM1/14/15
to grph-high-performa...@googlegroups.com
Hi all,

i'm using this library for a university project.

When i try to load a grph text file into an InMemoryGrph, the following exception is raised:

java.lang.IllegalStateException: incident vertices are missing
at grph.io.GrphTextReader.readGraph(GrphTextReader.java:121)
at grph.io.AbstractGraphReader.readGraph(AbstractGraphReader.java:71)
at grph.Grph.fromGrphText(Grph.java:489)
at grph.Grph.fromGrphTextFile(Grph.java:500)
at org.elendev.wesproject.graph.GrphToJung.<init>(GrphToJung.java:32)
at org.elendev.wesproject.graph.GrphToJung.main(GrphToJung.java:77)

if there are isolated vertices, but when the graph is created for the first time, it doesn't complain, and it shows the graph without problems.

The graph file that raise the exception is here: http://pastebin.com/Jbc3Aews

And i have another question, how i can change the size of graphic vertex? I saw that there where the costrunctor takes a String Argument. Can you provide an example on how to use change the rendered vertex size (for that setVerticesSize method there is no documentation)?

Thanks,
Ivan


ivan.gu...@gmail.com

unread,
Jan 14, 2015, 3:28:27 PM1/14/15
to grph-high-performa...@googlegroups.com, ivan.gu...@gmail.com
I also have another question:

is there a way to remove isolated vertices from the graph?

Many thanks.
Reply all
Reply to author
Forward
0 new messages