UNPKG
@graphty/layout
Version:
latest (1.2.9)
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
graph layout algorithms based on networkx
github.com/graphty-org/layout
graphty-org/layout
@graphty/layout
/
dist
/
src
/
types
/
graph.d.ts
11 lines
(10 loc)
•
252 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Core graph type definitions */
export
type
Node
=
string
|
number
;
export
type
Edge
= [
Node
,
Node
];
export
type
Graph
= {
nodes
:
() =>
Node
[];
edges
:
() =>
Edge
[];
getEdgeData
?:
(
source
:
Node
,
target
:
Node
,
attr
:
string
) =>
any
; };