Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In your graph, the nodes are not owning each other, are they?


No, but they do point to each other. For example, each node can have an array of all the edges, and each edge has two pointers to each node it connects. Via this you can walk around cycles for example. And typically these can change when nodes are inserted or removed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: