How to addEdge only if an edge doesn't exist between two nodes?

Hello,

I'm using Image/GraphViz.php.

1. Is there a way to add an edge only if an edge doesn't already exist between two nodes?
2. Is there a way to check/query whether a node exists between two given nodes?

Thanks,
Logan

We're not involved with the

We're not involved with the GraphViz.php code. That said, from what little documentation I could find, the library doesn't appear to provide any way to query about nodes and edges. For 2), you would also need some way to iterate over the edges of a node.

Recent comments