documentationfor yFiles for HTML 2.6

GraphStructureAnalyzer

This class provides methods that check structural properties of a given graph.

Inheritance Hierarchy
GraphStructureAnalyzer

Remarks

Definitions

  • Cycle – An edge path with nodes n0, n1, n2, ... , nk forms a cycle if n0 = nk and consists of at least one edge.
  • Acyclic graph – A graph that contains no directed cycle.
  • Cyclic graph – A graph that contains a directed cycle.
  • Connected graph – A graph in which there exists an undirected path of edges between every pair of nodes.
  • Strongly connected graph – A graph in which there exists a directed path between each pair of nodes.
  • Biconnected graph – A graph that has no cut vertex or articulation point (i.e., a node whose removal disconnects the graph).
  • Bipartite graph – A graph whose nodes can be partitioned into two sets such that each edge connects two nodes of different sets.
  • Tree – A acyclic graph, in which any pair of nodes is connected through a path. If one node of a tree is distinguished from the other nodes, then the tree is called rooted tree.
  • N-ary tree – A directed rooted tree where each node has a maximum of n children.
  • Forest – A graph whose connected components are trees.
  • Simple graph – An undirected graph that contains no self-loops or parallel edges.
  • Planar graph – A graph that can be drawn on the plane without edge crossings.
  • Multiple Edges – Multiple edges are edges that are incident to the same two nodes.

subgraphNodes and subgraphEdges can be used to run the analysis on an induced subgraph, only. Note that the subgraph will be reevaluated for each analysis.

Examples

An instance of GraphStructureAnalyzer is valid for an IGraph instance.
const analyzer = new GraphStructureAnalyzer(graph)

Type Details

yfiles module
view-layout-bridge
yfiles-umd modules
view-layout-bridge
Legacy UMD name
yfiles.analysis.GraphStructureAnalyzer

See Also

Constructors

Properties

Methods