Analyzer.ReciprocatedVertexPairRatioCalculator.GetVertexIDPairs C# (CSharp) Method

GetVertexIDPairs() protected method

protected GetVertexIDPairs ( IGraph oGraph ) : HashSet
oGraph IGraph
return HashSet
        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);
        }