plebeiangraphlibrary 1.0.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/pgl.d.ts +84 -32
- package/Build/pgl.d.ts.map +1 -1
- package/Build/pgl.js +540 -105
- package/Build/pgl.js.map +1 -1
- package/Build/pgl_module.js +9876 -6807
- package/Build/pgl_module.js.map +1 -1
- package/CODE_OF_CONDUCT.md +39 -39
- package/CONTRIBUTING.md +52 -52
- package/Examples/1_ZKC_simple.html +81 -75
- package/Examples/2_ZKC_edge_bundling.html +87 -81
- package/Examples/3_LargePointCloud.html +88 -81
- package/Examples/4_ToggleActivation.html +111 -105
- package/Examples/5_Hierarchy_simple.html +54 -0
- package/Examples/6_Flowmap_style.html +86 -0
- package/Examples/7_Graph_algorithms.html +63 -0
- package/Examples/8_ThreeWrapper_variants.html +51 -0
- package/Examples/MasterStyle.css +161 -53
- package/Examples/index.html +61 -34
- package/LICENSE +21 -21
- package/README.md +144 -139
- package/package.json +69 -67
package/Build/pgl.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare class Point {
|
|
|
15
15
|
constructor(x: number, y: number, z: number);
|
|
16
16
|
/**
|
|
17
17
|
* Displaces a point - note this method moves the existing point
|
|
18
|
-
* @param Point
|
|
18
|
+
* @param Point - Displacement vector (used as a point)
|
|
19
19
|
*/
|
|
20
20
|
translate(Point: Point): void;
|
|
21
21
|
}
|
|
@@ -34,14 +34,13 @@ interface _Node {
|
|
|
34
34
|
neighbours: number[];
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* The data also contains the position of the
|
|
37
|
+
* Node class: each node has an ID (index) and arbitrary data.
|
|
38
|
+
* The data typically includes "pos" (Point) for visualization.
|
|
40
39
|
*/
|
|
41
40
|
declare class _Node {
|
|
42
41
|
/**
|
|
43
42
|
*
|
|
44
|
-
* @param data Data associated with the node
|
|
43
|
+
* @param data - Data associated with the node; include "pos" (Point) for graph visuals
|
|
45
44
|
*/
|
|
46
45
|
constructor(data: any);
|
|
47
46
|
}
|
|
@@ -51,7 +50,7 @@ interface Edge {
|
|
|
51
50
|
data: any;
|
|
52
51
|
}
|
|
53
52
|
/**
|
|
54
|
-
*
|
|
53
|
+
* Edge class: connects two nodes by start/end IDs; can hold optional data (e.g. "ldata" for line geometry).
|
|
55
54
|
*/
|
|
56
55
|
declare class Edge {
|
|
57
56
|
/**
|
|
@@ -60,7 +59,7 @@ declare class Edge {
|
|
|
60
59
|
*
|
|
61
60
|
* @param start Start index of the edge based on the array of nodes
|
|
62
61
|
* @param end End index of the edge based on the array of nodes
|
|
63
|
-
* @param data
|
|
62
|
+
* @param data - Optional data; "ldata" is reserved for line geometry used when drawing the edge
|
|
64
63
|
*/
|
|
65
64
|
constructor(start: number, end: number, data: any);
|
|
66
65
|
}
|
|
@@ -69,8 +68,8 @@ export interface Graph {
|
|
|
69
68
|
edges: Map<number, Edge>;
|
|
70
69
|
}
|
|
71
70
|
/**
|
|
72
|
-
* The main graph object
|
|
73
|
-
*
|
|
71
|
+
* The main graph object: contains nodes and edges that get modified with different
|
|
72
|
+
* operations (layout, clustering, etc.).
|
|
74
73
|
*/
|
|
75
74
|
export class Graph {
|
|
76
75
|
/**
|
|
@@ -78,7 +77,7 @@ export class Graph {
|
|
|
78
77
|
* Construct a graph object (no initializing)
|
|
79
78
|
*
|
|
80
79
|
* @param nodes - Map of all the nodes associated with the graph
|
|
81
|
-
* @param edges - Map of all the edges
|
|
80
|
+
* @param edges - Map of all the edges associated with the graph
|
|
82
81
|
*/
|
|
83
82
|
constructor(nodes: Map<number, _Node>, edges: Map<number, Edge>);
|
|
84
83
|
/**
|
|
@@ -86,13 +85,13 @@ export class Graph {
|
|
|
86
85
|
*/
|
|
87
86
|
printData(): void;
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
88
|
+
* Initializes the graph and constructs the node adjacency list.
|
|
90
89
|
*/
|
|
91
90
|
initialize(): Promise<void>;
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
94
93
|
* This is the official create method to make a graph based on a set of nodes and edges
|
|
95
|
-
* It also auto
|
|
94
|
+
* It also auto-initializes the graph and sets all the adjacency lists in memory.
|
|
96
95
|
*
|
|
97
96
|
* @param nodes - map of nodes
|
|
98
97
|
* @param edges - map of edges
|
|
@@ -104,9 +103,9 @@ export class Graph {
|
|
|
104
103
|
*/
|
|
105
104
|
constructAdjacencyList(): Promise<void>;
|
|
106
105
|
/**
|
|
107
|
-
* Add a
|
|
108
|
-
* @param nodeID -
|
|
109
|
-
* @param data -
|
|
106
|
+
* Add a node to the graph.
|
|
107
|
+
* @param nodeID - The node ID
|
|
108
|
+
* @param data - Data associated with the node
|
|
110
109
|
*/
|
|
111
110
|
add_node(nodeID: number, data: _Node): void;
|
|
112
111
|
/**
|
|
@@ -118,7 +117,7 @@ export class Graph {
|
|
|
118
117
|
add_edge(start: number, end: number, data: any): void;
|
|
119
118
|
/**
|
|
120
119
|
*
|
|
121
|
-
* @returns
|
|
120
|
+
* @returns The adjacency lists associated with the graph
|
|
122
121
|
*/
|
|
123
122
|
get_adjacency(): Map<number, number[]>;
|
|
124
123
|
/**
|
|
@@ -146,15 +145,15 @@ export class Graph {
|
|
|
146
145
|
}): void;
|
|
147
146
|
/**
|
|
148
147
|
* Gets the position map and the edge map respectively
|
|
149
|
-
* @returns
|
|
148
|
+
* @returns The position map and the edge map as pmap and emap
|
|
150
149
|
*/
|
|
151
150
|
get_map(): {
|
|
152
151
|
pmap: Map<number, Point>;
|
|
153
152
|
emap: Map<number, Line>;
|
|
154
153
|
};
|
|
155
154
|
/**
|
|
156
|
-
*
|
|
157
|
-
* @returns
|
|
155
|
+
* Get the position of the nodes in the graph.
|
|
156
|
+
* @returns The position map (node ID to Point)
|
|
158
157
|
*/
|
|
159
158
|
get_position_map(): Map<number, Point>;
|
|
160
159
|
}
|
|
@@ -434,7 +433,7 @@ export const SampleData: {
|
|
|
434
433
|
* @param alpha - the alpha value of the node defaults to 1 (opaque)
|
|
435
434
|
* @returns a three JS group that contains all the vertices as a point cloud or a three js points object that can be added to the scene
|
|
436
435
|
*/
|
|
437
|
-
declare function DrawTHREEGraphVertices(Graph: Graph, bounds?: number, size?: number | number[], color?: number, alpha?: number): THREE.Group
|
|
436
|
+
declare function DrawTHREEGraphVertices(Graph: Graph, bounds?: number, size?: number | number[], color?: number, alpha?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
438
437
|
/**
|
|
439
438
|
*
|
|
440
439
|
* Draws out all the edges (Thick edges of a graph)
|
|
@@ -442,10 +441,10 @@ declare function DrawTHREEGraphVertices(Graph: Graph, bounds?: number, size?: nu
|
|
|
442
441
|
* @param Graph - The graph whose edges have to be drawn
|
|
443
442
|
* @param bounds - the global scale for all the edges to be drawn defaults to 1
|
|
444
443
|
* @param color - color of the edges defaults to white
|
|
445
|
-
* @param thickness - thickness of the edges (defaults to 0.
|
|
444
|
+
* @param thickness - thickness of the edges (defaults to 0.4; screen-space pixels ≈ thickness × 100 for values < 1)
|
|
446
445
|
* @returns a Three Js group of edges that can be added to the scene
|
|
447
446
|
*/
|
|
448
|
-
declare function DrawTHREEGraphEdgesThick(Graph: Graph, bounds?: number, color?: number, thickness?: number): THREE.Group
|
|
447
|
+
declare function DrawTHREEGraphEdgesThick(Graph: Graph, bounds?: number, color?: number, thickness?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
449
448
|
/**
|
|
450
449
|
*
|
|
451
450
|
* Draw thick edges from an edge map
|
|
@@ -453,10 +452,10 @@ declare function DrawTHREEGraphEdgesThick(Graph: Graph, bounds?: number, color?:
|
|
|
453
452
|
* @param EdgeMap - The edge map associated with the graph
|
|
454
453
|
* @param bounds - The global scale of the graph - defaults to 1
|
|
455
454
|
* @param color - The color of the edges - defaults to white
|
|
456
|
-
* @param thickness - thickness of the edges
|
|
455
|
+
* @param thickness - thickness of the edges (defaults to 0.4; pixels ≈ thickness × 100 for values < 1)
|
|
457
456
|
* @returns
|
|
458
457
|
*/
|
|
459
|
-
declare function DrawThickEdgesFromEdgeMap(EdgeMap: Map<number, Line>, bounds: number, color?: number, thickness?: number): THREE.Group
|
|
458
|
+
declare function DrawThickEdgesFromEdgeMap(EdgeMap: Map<number, Line>, bounds: number, color?: number, thickness?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
460
459
|
/**
|
|
461
460
|
*
|
|
462
461
|
* Draw thin lines for all the edges given a graph
|
|
@@ -466,7 +465,7 @@ declare function DrawThickEdgesFromEdgeMap(EdgeMap: Map<number, Line>, bounds: n
|
|
|
466
465
|
* @param color - color of the lines - defaults to white
|
|
467
466
|
* @returns
|
|
468
467
|
*/
|
|
469
|
-
declare function DrawTHREEGraphEdgesThin(Graph: Graph, bounds?: number, color?: number): THREE.Group
|
|
468
|
+
declare function DrawTHREEGraphEdgesThin(Graph: Graph, bounds?: number, color?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
470
469
|
/**
|
|
471
470
|
*
|
|
472
471
|
* Draw Line map as lines given the edge map assocaited with the graph
|
|
@@ -476,7 +475,7 @@ declare function DrawTHREEGraphEdgesThin(Graph: Graph, bounds?: number, color?:
|
|
|
476
475
|
* @param color - Color of the edges defaults to 1
|
|
477
476
|
* @returns
|
|
478
477
|
*/
|
|
479
|
-
declare function DrawThinEdgesFromEdgeMap(LineMap: Map<number, Line>, bounds?: number, color?: number): THREE.Group
|
|
478
|
+
declare function DrawThinEdgesFromEdgeMap(LineMap: Map<number, Line>, bounds?: number, color?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
480
479
|
/**
|
|
481
480
|
*
|
|
482
481
|
* Adde boxes where all the boxes are
|
|
@@ -487,7 +486,7 @@ declare function DrawThinEdgesFromEdgeMap(LineMap: Map<number, Line>, bounds?: n
|
|
|
487
486
|
* @param size - size of the nodes defaults to 10
|
|
488
487
|
* @returns a group of vertices that contains all of the boxes associated with each one of the vertices
|
|
489
488
|
*/
|
|
490
|
-
declare function AddBoxBasedImaging(nodeMap: Map<number, Point>, bounds?: number, color?: number, size?: number | number[]): THREE.Group
|
|
489
|
+
declare function AddBoxBasedImaging(nodeMap: Map<number, Point>, bounds?: number, color?: number, size?: number | number[]): THREE.Group<THREE.Object3DEventMap>;
|
|
491
490
|
/**
|
|
492
491
|
*
|
|
493
492
|
* Draw box based verices given a graph
|
|
@@ -498,7 +497,7 @@ declare function AddBoxBasedImaging(nodeMap: Map<number, Point>, bounds?: number
|
|
|
498
497
|
* @param size - Default size of the nodes defaults to 10
|
|
499
498
|
* @returns
|
|
500
499
|
*/
|
|
501
|
-
declare function DrawTHREEBoxBasedVertices(Graph: Graph, bounds?: number, color?: number, size?: number | number[]): THREE.Group
|
|
500
|
+
declare function DrawTHREEBoxBasedVertices(Graph: Graph, bounds?: number, color?: number, size?: number | number[]): THREE.Group<THREE.Object3DEventMap>;
|
|
502
501
|
/**
|
|
503
502
|
*
|
|
504
503
|
* Draw cylinders where all the vertices are based on a node map
|
|
@@ -509,7 +508,7 @@ declare function DrawTHREEBoxBasedVertices(Graph: Graph, bounds?: number, color?
|
|
|
509
508
|
* @param size - the default size of the cylinder, defaults to 10
|
|
510
509
|
* @returns
|
|
511
510
|
*/
|
|
512
|
-
declare function AddCylinderBasedImaging(nodeMap: Map<number, Point>, divisonLength?: number, color?: number, size?: number | number[]): THREE.Group
|
|
511
|
+
declare function AddCylinderBasedImaging(nodeMap: Map<number, Point>, divisonLength?: number, color?: number, size?: number | number[]): THREE.Group<THREE.Object3DEventMap>;
|
|
513
512
|
/**
|
|
514
513
|
*
|
|
515
514
|
* Split up a graph and return an boject containing a bunch of node groups and edge groups based on some parameterS
|
|
@@ -519,8 +518,8 @@ declare function AddCylinderBasedImaging(nodeMap: Map<number, Point>, divisonLen
|
|
|
519
518
|
* @returns - an object that hasa set of node vertices and a set of edge lines based on the splitting factor
|
|
520
519
|
*/
|
|
521
520
|
declare function AddInModularityBasedPointGroups(Graph: Graph, propertyName: string): Promise<{
|
|
522
|
-
nodeGroups: Map<number, THREE.Group
|
|
523
|
-
EdgeGroups: Map<number, THREE.Group
|
|
521
|
+
nodeGroups: Map<number, THREE.Group<THREE.Object3DEventMap>>;
|
|
522
|
+
EdgeGroups: Map<number, THREE.Group<THREE.Object3DEventMap>>;
|
|
524
523
|
}>;
|
|
525
524
|
/**
|
|
526
525
|
*
|
|
@@ -531,7 +530,7 @@ declare function AddInModularityBasedPointGroups(Graph: Graph, propertyName: str
|
|
|
531
530
|
* @param color - color of these edges - defaults to 0.1
|
|
532
531
|
* @returns - a group of simple lines based on all the edges supplied to it
|
|
533
532
|
*/
|
|
534
|
-
declare function DrawSimplifiedEdges(Graph: Graph, amount: number, color?: number): THREE.Group
|
|
533
|
+
declare function DrawSimplifiedEdges(Graph: Graph, amount: number, color?: number): THREE.Group<THREE.Object3DEventMap>;
|
|
535
534
|
/**
|
|
536
535
|
*
|
|
537
536
|
* Change all the vertex colors based on some array of properties
|
|
@@ -638,5 +637,58 @@ declare function GenerateErdosReyni_n_p(n: number, p: number): Promise<Graph>;
|
|
|
638
637
|
export const Models: {
|
|
639
638
|
GenerateErdosReyni_n_p: typeof GenerateErdosReyni_n_p;
|
|
640
639
|
};
|
|
640
|
+
/**
|
|
641
|
+
* Options for distance-based clustering.
|
|
642
|
+
*/
|
|
643
|
+
interface ClusterByDistanceOptions {
|
|
644
|
+
/** Maximum distance between two nodes for them to be in the same cluster. */
|
|
645
|
+
distanceThreshold: number;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Result of a clustering step: maps each node ID to its cluster ID.
|
|
649
|
+
*/
|
|
650
|
+
interface ClusterResult {
|
|
651
|
+
/** Map from original node ID to cluster ID (integer). */
|
|
652
|
+
nodeToCluster: Map<number, number>;
|
|
653
|
+
/** Map from cluster ID to centroid position (e.g. for super-node placement). */
|
|
654
|
+
clusterCentroids: Map<number, Point>;
|
|
655
|
+
/** List of unique cluster IDs. */
|
|
656
|
+
clusterIds: number[];
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Strategy interface for hierarchical node combining.
|
|
660
|
+
* Implementations (e.g. KD-tree distance-based, or future class-based) produce a clustering.
|
|
661
|
+
*/
|
|
662
|
+
interface ClusterStrategy {
|
|
663
|
+
/**
|
|
664
|
+
* Compute clustering of graph nodes.
|
|
665
|
+
* @param graph - The graph to cluster
|
|
666
|
+
* @param options - Strategy-specific options
|
|
667
|
+
* @returns Assignment of each node to a cluster and cluster centroids
|
|
668
|
+
*/
|
|
669
|
+
cluster(graph: Graph, options: Record<string, unknown>): ClusterResult;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Cluster the graph by distance (KD-tree based) and return a simplified graph.
|
|
673
|
+
* Nodes within `distanceThreshold` are merged; super-nodes are placed at cluster centroids.
|
|
674
|
+
*
|
|
675
|
+
* @param graph - The graph to cluster
|
|
676
|
+
* @param options - { distanceThreshold: number }
|
|
677
|
+
* @returns A new graph with one node per cluster and aggregated edges between clusters
|
|
678
|
+
*/
|
|
679
|
+
declare function clusterByDistance(graph: Graph, options: ClusterByDistanceOptions): Promise<Graph>;
|
|
680
|
+
/**
|
|
681
|
+
* Cluster the graph using a custom strategy and return a simplified graph.
|
|
682
|
+
*
|
|
683
|
+
* @param graph - The graph to cluster
|
|
684
|
+
* @param strategy - A ClusterStrategy implementation
|
|
685
|
+
* @param options - Strategy-specific options
|
|
686
|
+
* @returns A new graph with one node per cluster and aggregated edges
|
|
687
|
+
*/
|
|
688
|
+
declare function clusterByStrategy(graph: Graph, strategy: ClusterStrategy, options: Record<string, unknown>): Promise<Graph>;
|
|
689
|
+
export const Hierarchy: {
|
|
690
|
+
clusterByDistance: typeof clusterByDistance;
|
|
691
|
+
clusterByStrategy: typeof clusterByStrategy;
|
|
692
|
+
};
|
|
641
693
|
|
|
642
694
|
//# sourceMappingURL=pgl.d.ts.map
|
package/Build/pgl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;AAAA;IACE,CAAC,EAAE,MAAM,CAAC;IACV,CA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E,6EAA6E;IAC7E,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH;IACE,yDAAyD;IACzD,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,gFAAgF;IAChF,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACrC,kCAAkC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;GAGG;AACH;IACE;;;;;OAKG;IACH,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC;CACxE;AIzBD;;;;;;;GAOG;AACH,mCACE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,KAAK,CAAC,CAIhB;AAED;;;;;;;GAOG;AACH,mCACE,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,KAAK,CAAC,CAGhB","sources":["Src/Src/HelperClasses/Point.ts","Src/Src/HelperClasses/Line.ts","Src/Src/Core/_Node.ts","Src/Src/Core/Edge.ts","Src/Src/Core/Graph.ts","Src/Src/Core/index.ts","Src/Src/GraphAlgorithms/GraphMethods.ts","Src/Src/GraphAlgorithms/index.ts","Src/Src/SampleData/ZKC.ts","Src/Src/SampleData/ZKC_simulated.ts","Src/Src/HelperClasses/GraphConstructors.ts","Src/Src/HelperClasses/Utilities.ts","Src/Src/HelperClasses/GeometryHelpers.ts","Src/Src/Drawing/Drawing.ts","Src/Src/SampleData/DataLoader.ts","Src/Src/SampleData/index.ts","Src/Src/HelperClasses/ColorHelper.ts","Src/Src/Drawing/MeshLineGeometry.ts","Src/Src/Drawing/MeshLineMaterial.ts","Src/Src/Drawing/ThickLine.ts","Src/Src/Shaders/vertexShader.glsl.ts","Src/Src/Shaders/fragmentShader.glsl.ts","Src/Src/Drawing/ThreeJSDrawer.ts","Src/Src/Drawing/GraphDrawer.ts","Src/Src/Models/ErdosRenyiModel.ts","Src/Src/Models/index.ts","Src/Src/Hierarchy/types.ts","Src/Src/Hierarchy/KDTree.ts","Src/Src/Hierarchy/KDDistanceStrategy.ts","Src/Src/Hierarchy/buildSimplifiedGraph.ts","Src/Src/Hierarchy/index.ts","Src/Src/index.ts","Src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export { Graph } from \"./Core\";\nexport { GraphMethods } from \"./GraphAlgorithms\";\nexport { SampleData } from \"./SampleData\";\nexport { default as Constructors } from \"./HelperClasses/GraphConstructors\";\nexport { default as Drawing } from \"./Drawing/Drawing\";\nexport { default as Geometry } from \"./HelperClasses/GeometryHelpers\";\nexport { default as Utilities } from \"./HelperClasses/Utilities\";\nexport { default as ThreeWrapper } from \"./Drawing/ThreeJSDrawer\";\nexport { default as GraphDrawer } from \"./Drawing/GraphDrawer\";\nexport { Models } from \"./Models\";\nexport { default as Hierarchy } from \"./Hierarchy\";\n"],"names":[],"version":3,"file":"pgl.d.ts.map"}
|