public void GetAllEdges() { m_Edges = new List<ViewerEdge>(); foreach (ViewerResultNode startNode in m_AllNodes.Values) { foreach (int tid in startNode.OutLinkList) { ViewerQueryNode endNode = m_AllNodes[tid]; ViewerEdge vqe = new ViewerEdge(startNode, endNode); if (vqe.Valid()) { m_Edges.Add(vqe); } } } }
public List<ViewerEdge> GetAllEdges() { List<ViewerEdge> res = new List<ViewerEdge>(); foreach (KeyValuePair<int, ViewerQueryNode> kv in m_AllNodes) { ViewerQueryNode startNode = kv.Value; foreach (int tid in startNode.OutLinkList) { ViewerQueryNode endNode = m_AllNodes[tid]; ViewerEdge vqe = new ViewerEdge(startNode, endNode); if (vqe.Valid()) { res.Add(vqe); } } } return res; }