Graph library for golang

1,896 views
Skip to first unread message

gerald...@gmail.com

unread,
Aug 11, 2014, 9:55:04 AM8/11/14
to golan...@googlegroups.com
Hi,

can you recommend a graph library for golang? I play with directed graphs...

Thanks,
Gerald

egon

unread,
Aug 11, 2014, 10:10:00 AM8/11/14
to golan...@googlegroups.com, gerald...@gmail.com
What do you want to do with the graphs?


+ egon

Jonathan Lawlor

unread,
Aug 11, 2014, 10:41:55 AM8/11/14
to golan...@googlegroups.com
There is also the http://github.com/gonum/graph library, but I haven't used it. Looks like the last commit was in April.

gerald...@gmail.com

unread,
Aug 11, 2014, 10:53:26 AM8/11/14
to golan...@googlegroups.com, gerald...@gmail.com
simple stuff like: i check the outgoing edges of a particular node and want to know which nodes its not connected to...

Gyu-Ho Lee

unread,
Aug 11, 2014, 3:51:56 PM8/11/14
to golan...@googlegroups.com, gerald...@gmail.com
Hope you find this useful.

gerald...@gmail.com

unread,
Aug 12, 2014, 9:34:12 AM8/12/14
to golan...@googlegroups.com, gerald...@gmail.com
i need the following functionality from a graph library:
- create a custom directed graph
- get all nodes in a graph
- get all neighbors of a particular node
- plot graph (to svg, png, dot file) (is nice to have)

egon

unread,
Aug 12, 2014, 10:09:05 AM8/12/14
to golan...@googlegroups.com, gerald...@gmail.com


On Tuesday, 12 August 2014 16:34:12 UTC+3, gerald...@gmail.com wrote:
i need the following functionality from a graph library:
- create a custom directed graph
- get all nodes in a graph
- get all neighbors of a particular node
- plot graph (to svg, png, dot file) (is nice to have)

A really simple approach: http://play.golang.org/p/VWR9zSoC-p
Although it probably won't scale to very large graphs.

+ egon

Jsor

unread,
Aug 22, 2014, 5:48:06 AM8/22/14
to golan...@googlegroups.com

On Monday, August 11, 2014 7:41:55 AM UTC-7, Jonathan Lawlor wrote:
There is also the http://github.com/gonum/graph library, but I haven't used it. Looks like the last commit was in April.

That's (mostly) mine. It's not dead, I've just been working on other stuff. I tend to rotate maintenance on my projects rather than spreading my attention around to all of them at once so I'll probably get back to it in the next couple months.

Tom Maiaroto

unread,
Aug 22, 2014, 12:46:06 PM8/22/14
to golan...@googlegroups.com
Speaking of graphs, does anyone know of a Go package that works with OrientDB?
Reply all
Reply to author
Forward
0 new messages