gigaherz / GraphLib

A simple graph library that is generic but was designed for the use case of assembling block networks in Minecraft Mods
MIT License
8 stars 3 forks source link

Feature Request: Undirected Graph Helper methods #6

Closed justliliandev closed 10 months ago

justliliandev commented 2 years ago

Would it be possible to have some Helper in Graph to work in a way, where you don't want to care about the direction of edges? Like a Graph.getNonDirectionalNeighbours or Graph.removeNonDirectionalSingleEdge . I currently have two graphobjects and don't know directly which is the neighbour and which is the "main one", but I know they are connected (I can figure that out, but I think putting that into the Graph class directly would make it a bit simpler). If that's something you would want in this Lib I'm willing to provide an example implementation for these methods