Jump to content


Graphviz help


16 replies to this topic

#1 Jemanari Public Relations

    Member

  • Members
  • PipPip
  • 66 posts

Posted 03 September 2009 - 10:10 PM

I was wondering if anyone knows how to set nodes on the graphviz dotty style graph so that they are a filled in color. I have read the manuals included and can't seem to figure it out. I am trying to set the nodes so that they are solid blue , or red instead of being just a black circle with white inside.

#2 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 04 September 2009 - 12:41 PM

View PostJemanari Public Relations, on Sep 4 2009, 07:10 AM, said:

I was wondering if anyone knows how to set nodes on the graphviz dotty style graph so that they are a filled in color. I have read the manuals included and can't seem to figure it out. I am trying to set the nodes so that they are solid blue , or red instead of being just a black circle with white inside.


A12345 [ label="A12345", font="Arial", fontsize=4, fontcolor="black", fillcolor="yellow", style="filled", shape="circle", height=2, width=2];

This will do a yellow filled circle.

Other shapes are available as well.

#3 Breoghan

    Old Hand

  • Members
  • PipPipPipPip
  • 584 posts
  • Gender:Male
  • Location:DFW TX
  • Interests:Living, not just existing.

Posted 04 September 2009 - 03:08 PM

How difficult is Graphviz to use for the non-geeks?
Breoghan

Life goes on, then one day it doesn't. The rest is just there to keep things interesting. (a Breoghanism)
The Meek Shall Inherit the Earth. The Rest of Us are going to the Stars. (dunno who said it, but I like his thinking!)
Quoth a foe, "Circumstances do not make a man, they reveal him" (Yep!)

#4 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 04 September 2009 - 03:15 PM

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.

#5 rfouasnon

    Elder

  • Members
  • PipPipPipPipPip
  • 1,071 posts
  • Gender:Male
  • Location:Lubbock , Texas

Posted 04 September 2009 - 03:18 PM

I was able to figure it out to a decent degree , and I don't know much about computer programs......love the program , makes a map second to none .
Lord Harkonnen...tracing his lineage back to The Knights Who Said Ni

House of Harkonnen....Based at Geidi Prime , home to the Shrine to Baron Vladimir Harkonnen RIP , Crusading Grand Knight of Ni

Da Funk / Daftendirekt
Television Rules the Nation / Crescendolls



#6 Jemanari Public Relations

    Member

  • Members
  • PipPip
  • 66 posts

Posted 04 September 2009 - 03:47 PM

Thanks cestvel. What I am looking for is a way to change an already created graph ( made one using SNFindpath) so that I can color code certain systems. Is there a way to edit an already created graph map to do that?

For example if I wanted to mark warp nexus systems red, alien controlled systems as blue, my own as green. That kind of thing.

#7 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 04 September 2009 - 04:11 PM

View PostJemanari Public Relations, on Sep 5 2009, 12:47 AM, said:

Thanks cestvel. What I am looking for is a way to change an already created graph ( made one using SNFindpath) so that I can color code certain systems. Is there a way to edit an already created graph map to do that?

For example if I wanted to mark warp nexus systems red, alien controlled systems as blue, my own as green. That kind of thing.


Currently not, sorry.

What you can do is define nodes (systems by name) and add them before the actual edge data (the lines with -> in them).

You will have to cut and paste this in every time for now. But this would give you the color codings you are looking for.

Use the syntax I posted. That one would define a node named A12345 (which would be an unexplored WP).

#8 Lord Deependra

    Veteran

  • Members
  • PipPipPip
  • 425 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 04 September 2009 - 05:15 PM

View Postcestvel, on Sep 5 2009, 08:15 AM, said:

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.


And

4) Don't survey too many systems or it will run out of memory when trying to build the map :(
One of empires works but the other has a map file 3K larger and neato gives me an out of memory error. I have to manually remove some systems to make it work.

#9 ali-t-akua

    Elder

  • Members
  • PipPipPipPipPip
  • 1,661 posts

Posted 04 September 2009 - 08:11 PM

View PostLord Deependra, on Sep 4 2009, 05:15 PM, said:

View Postcestvel, on Sep 5 2009, 08:15 AM, said:

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.


And

4) Don't survey too many systems or it will run out of memory when trying to build the map :(
One of empires works but the other has a map file 3K larger and neato gives me an out of memory error. I have to manually remove some systems to make it work.

How big is your text file for Graphviz?

I use dot, not neato for maps. I also do not generate my text file with SNFindPath (an altogether excellent program) and my file is 16K.
Ali-t, the akua of
The Skyron Confederation#3857

Aloha

Currently at peace

#10 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 05 September 2009 - 12:49 AM

View PostLord Deependra, on Sep 5 2009, 02:15 AM, said:

View Postcestvel, on Sep 5 2009, 08:15 AM, said:

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.


And

4) Don't survey too many systems or it will run out of memory when trying to build the map :(
One of empires works but the other has a map file 3K larger and neato gives me an out of memory error. I have to manually remove some systems to make it work.


That depends mostly on the output format. Use SVG, which can be displayed by most browsers just fine.
It is a vector format, so way smaller than any bitmap thingy.
And as Ali said, neato uses more mem as dot does.

#11 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 05 September 2009 - 12:52 AM

View Postali-t-akua, on Sep 5 2009, 05:11 AM, said:

View PostLord Deependra, on Sep 4 2009, 05:15 PM, said:

View Postcestvel, on Sep 5 2009, 08:15 AM, said:

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.


And

4) Don't survey too many systems or it will run out of memory when trying to build the map :(
One of empires works but the other has a map file 3K larger and neato gives me an out of memory error. I have to manually remove some systems to make it work.

How big is your text file for Graphviz?

I use dot, not neato for maps. I also do not generate my text file with SNFindPath (an altogether excellent program) and my file is 16K.


I also do not use SNFindPath to generate my maps :(
I do it with scripts from my database, as there is more info in it than in the mdbs :joker:

But SNFindPath can show you a bit how to do the syntax and the commandline for dot or neato.

#12 Lord Deependra

    Veteran

  • Members
  • PipPipPip
  • 425 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 05 September 2009 - 03:19 AM

View Postcestvel, on Sep 5 2009, 05:52 PM, said:

View Postali-t-akua, on Sep 5 2009, 05:11 AM, said:

View PostLord Deependra, on Sep 4 2009, 05:15 PM, said:

View Postcestvel, on Sep 5 2009, 08:15 AM, said:

View PostBreoghan, on Sep 5 2009, 12:08 AM, said:

How difficult is Graphviz to use for the non-geeks?


Together with SNFindPath rather easy.

1) You need to be able to install a program
2) You need to be able to execute a program in the Commandline.
3) being able to edit a textfile might help as well.


And

4) Don't survey too many systems or it will run out of memory when trying to build the map :(
One of empires works but the other has a map file 3K larger and neato gives me an out of memory error. I have to manually remove some systems to make it work.

How big is your text file for Graphviz?

I use dot, not neato for maps. I also do not generate my text file with SNFindPath (an altogether excellent program) and my file is 16K.


I also do not use SNFindPath to generate my maps :(
I do it with scripts from my database, as there is more info in it than in the mdbs :joker:

But SNFindPath can show you a bit how to do the syntax and the commandline for dot or neato.


Thanks everyone. Dot is working a lot better.

#13 hobknob

    Keeper of the Galactic Directory

  • Members
  • PipPipPipPipPip
  • 1,484 posts

Posted 08 September 2009 - 05:48 PM

I rarely have the program hang and I have quite few systems in the map. My larger maps do take a bit of time to render but once done they work fine. Can't beat the search function either. !!
:drunk:
Hobknob
Keeper of the Galactic Directory
hobknob15@gmail.com

#14 cestvel

    Old Hand

  • Members
  • PipPipPipPip
  • 895 posts
  • Gender:Male
  • Location:Germany
  • Interests:Playing Games, Programming

Posted 09 September 2009 - 01:13 AM

View Posthobknob, on Sep 9 2009, 02:48 AM, said:

I rarely have the program hang and I have quite few systems in the map. My larger maps do take a bit of time to render but once done they work fine. Can't beat the search function either. !!
:drunk:



Search function? Which output do you generate?

#15 hobknob

    Keeper of the Galactic Directory

  • Members
  • PipPipPipPipPip
  • 1,484 posts

Posted 16 September 2009 - 01:34 PM

Well, I use NEATO. Being able to search for system names very quickly is the real reason to use it in the first place. If you can't search then you might as well be using and Excel spreadsheet, like what I have been using for 5 years now. One of the limitations to Excel is that you can run out of space. One of the problems with graphviz is that it can make things so small that you can't see more than a single node on screen at a time and still be able to read the name. With fewer systems this is not a problem, but with loads of systems it is a bit of a problem.
<_<
Hobknob
Keeper of the Galactic Directory
hobknob15@gmail.com





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users