LoopFreeGraphQ[g] 如果图 g 没有回路,产生 True;否则,产生 False.
检验一个图是否不具有回路:
对具有自环的图,LoopFreeGraphQ 给出 False:
Graph DirectedEdges AcyclicGraphQ SimpleGraphQ
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »