protected HashSet<Int64> GetVertexIDPairs(IGraph oGraph)
{
Debug.Assert(oGraph != null);
HashSet<Int64> oVertexIDPairs = new HashSet<Int64>();
foreach (IEdge oEdge in oGraph.Edges)
{
if (!oEdge.IsSelfLoop)
{
oVertexIDPairs.Add( CollectionUtil.GetDictionaryKey(
oEdge.Vertex1.ID, oEdge.Vertex2.ID, true) );
}
}
return (oVertexIDPairs);
}