transclosure
传递闭包
Syntax
Description
returns thetransitive closureof graphH
= transclosure(G
)G
as a new graph,H
. The nodes inH
are the same as those inG
, butH
has additional edges. If there is a path from nodei
to nodej
inG
, then there is an edge between nodei
and nodej
inH
. For multigraphs with multiple edges between the same two nodes, the output graph replaces these with a single edge.