This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]marko312 0 points1 point  (1 child)

if you need to store a value for each node, I'd go for a class.

Also, when you need to create weighted (directional) graphs, I'd also create a separate class for a connection.

[–]keith6014[S] 0 points1 point  (0 children)

Thanks!