Graph<ID> class

Data model of graph component. 图组件的数据模型

Constructors

Graph()

Properties

algorithm GraphAlgorithm?
getter/setter pair
allEdgeNames List<String>
cache the all edge name
getter/setter pair
allTags List<String>
cache the all tags of vertexes.
getter/setter pair
centerVertexes List<Vertex>
no setter
convertor DataConvertor?
getter/setter pair
data ↔ dynamic
The origin business data of graph. 图的原始业务数据。
getter/setter pair
edges Set<Edge>
All the edges' data in graph. 图中所有的关系数据
getter/setter pair
edgesBetween Map<Vertex, Map<Vertex, List<Edge>>>
getter/setter pair
edgesBetweenHash Map<String, List<Edge>>
When displaying the edge, the direction of the edge is not considered, only the two nodes of the edge are considered, so a hash table is used here to store the two nodes of the edge for calculating the index of the edge, in a multi-graph with the same two nodes, the position of the edge can be determined according to the subscript.
getter/setter pair
extraOnLoad Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
hoverEdge Edge?
The edge which is focused by mouse.
getter/setter pair
hoverVertex Vertex<ID>?
getter/setter pair
keyCache Map<ID, Vertex<ID>>
Cache the key and vertex in order to get vertex by id. 对节点的 id 进行缓存,为了方便通过 id 获取到接点
getter/setter pair
mergeGraph → dynamic
no setter
options Options?
getter/setter pair
pickedVertex List<Vertex<ID>>
The vertexes selected by the user. 被用户所选中的节点
getter/setter pair
refreshData → dynamic
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale ValueNotifier
no setter
size ValueNotifier<Size>
no setter
vertexes List<Vertex<ID>>
All the vertexes' data in graph. 图中所有的节点数据
final
vHoverTime Map<Vertex?, DateTime>
记算鼠标上次触碰节点的开始时间
getter/setter pair
zoom double
no setter

Methods

clear() → void
edgesFromTwoVertex(Vertex start, Vertex? end) List<Edge>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showPanel(Vertex<ID> v) bool
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

edgesBetweenKey(Vertex start, Vertex end) String