WebDrake / Dgraph

Graph library written in D.
GNU General Public License v3.0
45 stars 6 forks source link

isVertex not exposed in CachedEdgeList #9

Closed peter-thm closed 8 years ago

peter-thm commented 8 years ago

CachedEdgeList doesn't expose isVertex from IndexedEdgeList. Adding the following to CachedEdgeList works:

bool isVertex(T : size_t)(in T v) @safe const nothrow pure
{
    return _graph.isVertex(v);
}
WebDrake commented 8 years ago

Nice catch. That may have been overlooked because there's a private alias this inside CachedEdgeList which means that calls to CachedEdgeList.isVertex succeed within the dgraph.graph module, but fail for external calls. I'll fix shortly.