Graph<N, L, D> class

Implementers

Constructors

Graph({required String id, required List<N> nodes, required List<L> links, required TypedAccessorFn<N, D> nodeDomainFn, required TypedAccessorFn<L, D> linkDomainFn, required TypedAccessorFn<L, N> sourceFn, required TypedAccessorFn<L, N> targetFn, required TypedAccessorFn<N, num?> nodeMeasureFn, required TypedAccessorFn<L, num?> linkMeasureFn, TypedAccessorFn<N, Color>? nodeColorFn, TypedAccessorFn<N, Color>? nodeFillColorFn, TypedAccessorFn<N, FillPatternType>? nodeFillPatternFn, TypedAccessorFn<N, num>? nodeStrokeWidthPxFn, TypedAccessorFn<L, Color>? linkFillColorFn})
factory
Graph.base({required String id, required List<Node<N, L>> nodes, required List<Link<N, L>> links, required TypedAccessorFn<Node<N, L>, D> nodeDomainFn, required TypedAccessorFn<Link<N, L>, D> linkDomainFn, required TypedAccessorFn<Node<N, L>, num?> nodeMeasureFn, required TypedAccessorFn<Link<N, L>, num?> linkMeasureFn, required TypedAccessorFn<Node<N, L>, Color>? nodeColorFn, required TypedAccessorFn<Node<N, L>, Color>? nodeFillColorFn, required TypedAccessorFn<Node<N, L>, FillPatternType>? nodeFillPatternFn, required TypedAccessorFn<Node<N, L>, num>? nodeStrokeWidthPxFn, required TypedAccessorFn<Link<N, L>, Color>? linkFillColorFn})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this graph
final
linkAttributes → LinkAttributes
Store additional key-value pairs for link attributes
final
linkDomainFn TypedAccessorFn<Link<N, L>, D>
Accessor function that returns the domain for a link.
final
linkFillColorFn TypedAccessorFn<Link<N, L>, Color>?
Accessor function that returns the fill color of a node
final
linkMeasureFn TypedAccessorFn<Link<N, L>, num?>
Accessor function that returns the measure for a link.
final
All links in the graph.
final
nodeAttributes → NodeAttributes
Store additional key-value pairs for node attributes
final
nodeColorFn TypedAccessorFn<Node<N, L>, Color>?
Accessor function that returns the stroke color of a node
final
nodeDomainFn TypedAccessorFn<Node<N, L>, D>
Accessor function that returns the domain for a node.
final
nodeFillColorFn TypedAccessorFn<Node<N, L>, Color>?
Accessor function that returns the fill color of a node
final
nodeFillPatternFn TypedAccessorFn<Node<N, L>, FillPatternType>?
Accessor function that returns the fill pattern of a node
final
nodeMeasureFn TypedAccessorFn<Node<N, L>, num?>
Accessor function that returns the measure for a node.
final
nodes List<Node<N, L>>
All nodes in the graph.
final
nodeStrokeWidthPxFn TypedAccessorFn<Node<N, L>, num>?
Accessor function that returns the stroke width of a node
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLinkAttribute<R>(AttributeKey<R> key) → R?
Get attribute of given generic type R for a link series
getNodeAttribute<R>(AttributeKey<R> key) → R?
Get attribute of given generic type R for a node series
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLinkAttribute<R>(AttributeKey<R> key, R value) → void
Set attribute of given generic type R for a link series
setNodeAttribute<R>(AttributeKey<R> key, R value) → void
Set attribute of given generic type R for a node series
toSeriesList() List<Series<GraphElement, D>>
Transform graph data given by links and nodes into a Series list.
toString() String
A string representation of this object.
inherited

Operators

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