Exemplo n.º 1
0
 public bool ContainsEdgeParent([NotNull] ClusteredAdjacencyGraph <int, IEdge <int> > cluster, IEdge <int> edge)
 {
     return(cluster.ContainsEdge(edge) &&
            cluster.Parent != null &&
            ContainsEdgeParent(cluster.Parent, edge) ||
            cluster.Parent is null);
 }
 public bool ContainsEdgeParent(ClusteredAdjacencyGraph <int, IEdge <int> > clus, IEdge <int> e)
 {
     return(clus.ContainsEdge(e) && clus.Parent != null && ContainsEdgeParent(clus.Parent, e) ||
            clus.Parent == null);
 }