What could be the packages to use for visualization of graphs?
I tried Graphviz, but it's very hard to direct how the graphs should be shown.
How can I make the graphs represented as is shown in the examples (excerpt from Graph Theory and Complex Networks: An Introduction).
Best Answer
You can use TikZ. Here's a very minimal example,
You can use
pstricks
While this following example could be done a bit more efficiently, it does show that you can make very nicely connected graphs:
If you don't want to connect every node to each other, then you can do something along the following lines:
Here's (only) the beginning of how to set up something like your second example:
Be advised! Both
pstricks
andtikz
have their own learning curves. They both have ample documentation. The documentation forpstricks
is spread over multiplepdf
files, which at times can lead to frustration when you don't know where to look for the documentation.tikz
has an immense and very comprehensive manual (though knowing which libraries are necessary can be a bit frustrating at times).