- Implemented types
-
- IGraphData<
Data>
- IGraphData<
- Implementers
- Available extensions
Properties
-
edges
→ Map<
Node, Set< Node> > -
no setterinherited
- graphString → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodeData
→ Map<
String, Data> -
no setterinherited
-
nodes
→ Map<
String, Node> -
no setterinherited
-
parents
→ Map<
Node, Node> -
no setterinherited
- root → Node
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyzeStructure(
) → Map< String, dynamic> -
Available on IGraph<
Анализирует структуру графа и возвращает статистикуT> , provided by the GraphAnalytics extension -
calculateEditDistance(
IGraph other) → int -
Available on IGraph<
Вычисляет "расстояние редактирования" между графами (минимальное количество операций для превращения одного графа в другой)T> , provided by the GraphAnalytics extension -
containsNode(
String nodeKey) → bool -
extractSubtree(
String key, {bool copy = true}) → IGraphEditable< Data> - Создает новый граф, используя указанный узел как корень.
-
findCentralNodes(
) → Set< Node> -
Available on IGraph<
Находит центральные узлы графа Центральным считается узел, от которого максимальное расстояние до любого листа минимальноT> , provided by the GraphAnalytics extension -
findRepeatingSubtrees(
) → Map< String, List< Node> > -
Available on IGraph<
Находит повторяющиеся поддеревьяT> , provided by the GraphAnalytics extension -
getDepths(
) → Map< Node, int> -
getFullVerticalPath(
Node node) → Set< Node> -
getLeaves(
{Node? startNode}) → Set< Node> -
getNodeByKey(
String key) → Node? -
getNodeData(
String key) → Data? -
getNodeEdges(
Node node) → Set< Node> -
getNodeLevel(
Node node) → int -
getNodeParent(
Node node) → Node? -
getPathToNode(
Node node) → Set< Node> -
getSiblings(
Node node) → Set< Node> -
getVerticalPathBetweenNodes(
Node first, Node second, {Map< String, int> ? depths}) → Set<Node> -
isAncestor(
{required Node ancestor, required Node descendant}) → bool -
isBalanced(
) → bool -
Available on IGraph<
Проверяет, сбалансировано ли дерево Дерево считается сбалансированным, если разница в глубине любых двух поддеревьев не превышает 1T> , provided by the GraphAnalytics extension -
isIsomorphicTo(
IGraph other) → bool -
Available on IGraph<
Проверяет, изоморфны ли два графа Два графа изоморфны, если они имеют одинаковую структуру, независимо от порядка потомковT> , provided by the GraphAnalytics extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMermaid(
[GraphStyle style = GraphStyle.defaultStyle]) → String -
Available on IGraph<
Генерирует Mermaid-диаграмму для графаT> , provided by the GraphVisualization extension -
toMermaidHtml(
[GraphStyle style = GraphStyle.defaultStyle]) → String -
Available on IGraph<
Генерирует HTML с Mermaid-диаграммойT> , provided by the GraphVisualization extension -
toString(
) → String -
A string representation of this object.
inherited
-
visitBreadth(
VisitCallback visit, {Node? startNode}) → int -
visitDepth(
VisitCallback visit, {Node? startNode}) → void -
visitDepthBacktrack(
BacktrackCallback visit) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited