TestCalculateGraphMetrics2()
{
// Undirected graph.
Boolean bIsDirected = false;
CreateGraph(bIsDirected);
IVertex oVertexA = m_oVertices.Add();
IVertex oVertexB = m_oVertices.Add();
IVertex oVertexC = m_oVertices.Add();
m_oEdges.Add(oVertexA, oVertexB, bIsDirected);
m_oEdges.Add(oVertexA, oVertexC, bIsDirected);
m_oEdges.Add(oVertexB, oVertexC, bIsDirected);
m_oEdges.Add(oVertexB, oVertexA, bIsDirected);
m_oEdges.Add(oVertexC, oVertexA, bIsDirected);
m_oEdges.Add(oVertexB, oVertexB, bIsDirected);
IDictionary<Int32, Boolean> oReciprocationFlags =
m_oEdgeReciprocationCalculator.CalculateGraphMetrics(m_oGraph);
Assert.AreEqual(0, oReciprocationFlags.Count);
}