Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/graphology/graphology
/ functions
Functions
607 in github.com/graphology/graphology
⨍
Functions
607
◇
Types & classes
107
↓ 387 callers
Method
addNode
* Method used to add a node to the graph. * * @param {any} node - The node. * @param {object} [attributes] - Optional attributes
src/graphology/src/graph.js:1739
↓ 78 callers
Function
addNodesFrom
(graph, nodes)
src/graphology/tests/helpers.js:80
↓ 78 callers
Method
nodes
* Method returning the list of the graph's nodes. * * @return {array} - The nodes.
src/graphology/src/graph.js:2365
↓ 76 callers
Method
forEachNode
* Method iterating over the graph's nodes using the given callback. * * @param {function} callback - Callback (key, attributes, index).
src/graphology/src/graph.js:2374
↓ 60 callers
Method
hasNode
* Method returning whether the given node is found in the graph. * * @param {any} node - The node. * @return {boolean}
src/graphology/src/graph.js:722
↓ 58 callers
Method
hasEdge
* Method returning whether the given edge is found in the graph. * * Arity 1: * @param {any} edge - The edge's key. * * Arity 2:
src/graphology/src/graph.js:824
↓ 52 callers
Method
getAttribute
* Method returning the desired graph's attribute. * * @param {string} name - Name of the attribute. * @return {any}
src/graphology/src/graph.js:2073
↓ 46 callers
Method
copy
* Method returning an exact copy of the graph. * * @param {object} options - Upgrade options. * @return {Graph} - The copy.
src/graphology/src/graph.js:2781
↓ 42 callers
Method
dropEdge
* Method used to drop a single edge from the graph. * * Arity 1: * @param {any} edge - The edge. * * Arity 2: * @param {any}
src/graphology/src/graph.js:1920
↓ 35 callers
Function
closeTo
(A, B)
src/metrics/test/graph/modularity.js:57
↓ 33 callers
Method
edge
* Method returning the edge matching source & target in a mixed fashion. * * @param {any} source - The edge's source. * @param {any} target
src/graphology/src/graph.js:942
↓ 31 callers
Function
closeTo
(A, B)
src/indices/test/louvain.js:78
↓ 31 callers
Function
resolveDefaults
(target, defaults)
src/utils/defaults.js:20
↓ 28 callers
Method
clear
* Method used to remove every edge & every node from the graph. * * @return {Graph}
src/graphology/src/graph.js:2023
↓ 27 callers
Method
next
()
src/graphology/src/graph.js:2558
↓ 27 callers
Method
sparse
( graph: Graph<NodeAttributes, EdgeAttributes>, options?: ModularityOptions<NodeAttributes, EdgeAttrib
src/metrics/graph/modularity.d.ts:33
↓ 26 callers
Function
fromEdges
(GraphConstructor, edges)
src/indices/test/louvain.js:47
↓ 26 callers
Function
layout
(sizes, x, y, dx, dy)
src/layout/component-grid.js:112
↓ 25 callers
Method
degree
* Method returning the given node's directed degree. * * @param {any} node - The node's key. * @return {number} - The node's degre
src/graphology/src/graph.js:1326
↓ 25 callers
Function
rng
()
src/generators/test.js:13
↓ 24 callers
Function
assign
(pos)
src/layout/conversion.js:128
↓ 24 callers
Function
get
(attributes)
src/utils/getters.js:25
↓ 24 callers
Method
setAttribute
* Method setting a value for the desired graph's attribute. * * @param {string} name - Name of the attribute. * @param {any} value -
src/graphology/src/graph.js:2103
↓ 24 callers
Method
source
* Method returning the given edge's source. * * @param {any} edge - The edge's key. * @return {any} - The edge's source. * * @thr
src/graphology/src/graph.js:1551
↓ 24 callers
Function
string
()
src/graphology/benchmark/object-iterator-items.js:6
↓ 24 callers
Method
target
* Method returning the given edge's target. * * @param {any} edge - The edge's key. * @return {any} - The edge's target. * * @thr
src/graphology/src/graph.js:1572
↓ 23 callers
Method
isUndirected
* Method returning whether the given edge is undirected. * * @param {any} edge - The edge's key. * @return {boolean} * * @throws {
src/graphology/src/graph.js:1669
↓ 22 callers
Function
addNodesFrom
(graph, nodes)
src/components/test.js:44
↓ 22 callers
Function
applyMoves
(index, moves)
src/indices/test/louvain.js:72
↓ 22 callers
Method
hasDirectedEdge
* Method returning whether the given directed edge is found in the graph. * * Arity 1: * @param {any} edge - The edge's key. * * A
src/graphology/src/graph.js:740
↓ 21 callers
Method
assign
( graph: Graph, options?: HITSOptions<NodeAttributes, EdgeAttributes> )
src/metrics/centrality/hits.d.ts:31
↓ 21 callers
Method
dense
( graph: Graph<NodeAttributes, EdgeAttributes>, options?: ModularityOptions<NodeAttributes, EdgeAttrib
src/metrics/graph/modularity.d.ts:26
↓ 21 callers
Function
labelizeEdgeCentrality
(graph, edgeCentrality)
src/metrics/test/centrality/edge-betweenness.js:27
↓ 20 callers
Method
getAttributes
* Method returning the graph's attributes. * * @return {object}
src/graphology/src/graph.js:2082
↓ 20 callers
Method
mapNodes
* Method mapping nodes. * * @param {function} callback - Callback (key, attributes).
src/graphology/src/graph.js:2420
↓ 19 callers
Method
updateEachNodeAttributes
* Method used to update each node's attributes using the given function. * * @param {function} updater - Updater function to use. * @param {
src/graphology/src/graph.js:2244
↓ 18 callers
Method
emptyCopy
* Method returning an empty copy of the graph, i.e. a graph without edges but * with the exact same options. * * @param {object} options - O
src/graphology/src/graph.js:2761
↓ 18 callers
Method
mergeNode
* Method used to merge a node into the graph. * * @param {any} node - The node. * @param {object} [attributes] - Optional attrib
src/graphology/src/graph.js:1752
↓ 17 callers
Function
isPlainObject
(value)
src/graphology/src/utils.js:70
↓ 16 callers
Method
detailed
( graph: Graph<NodeAttributes, EdgeAttributes>, options?: RobustRandomnessLouvainOptions<NodeAttribute
src/communities-louvain/experimental/robust-randomness.d.ts:45
↓ 16 callers
Method
hasUndirectedEdge
* Method returning whether the given undirected edge is found in the graph. * * Arity 1: * @param {any} edge - The edge's key. * *
src/graphology/src/graph.js:782
↓ 16 callers
Function
prepareGraphH
()
src/cores/test.js:47
↓ 16 callers
Function
spy
(target)
src/graphology/tests/helpers.js:60
↓ 15 callers
Method
extremities
* Method returning the given edge's extremities. * * @param {any} edge - The edge's key. * @return {array} - The edge's extremities.
src/graphology/src/graph.js:1593
↓ 15 callers
Function
fn
()
src/graphology/tests/helpers.js:61
↓ 15 callers
Method
fromAttributes
(attributes: NodeAttributes)
src/utils/getters.d.ts:20
↓ 14 callers
Function
mapKeys
src/graphology/tests/iteration/edges.js:1014
↓ 14 callers
Method
updateEachEdgeAttributes
* Method used to update each edge's attributes using the given function. * * @param {function} updater - Updater function to use. * @param {
src/graphology/src/graph.js:2275
↓ 14 callers
Function
userSpecOrDefault
(userSpec, name, defaultValue)
src/minivan/index.js:152
↓ 13 callers
Function
assertSamePaths
(A, B)
src/simple-path/test.js:15
↓ 13 callers
Function
largestConnectedComponent
* Function returning the largest component of the given graph. * * @param {Graph} graph - Target graph. * @return {array}
src/components/index.js:155
↓ 13 callers
Function
range
(s, e)
src/cores/test.js:79
↓ 12 callers
Method
assign
(assign: boolean, graph: Graph, coreAttributes?: string)
src/cores/index.d.ts:8
↓ 12 callers
Function
getMatchingEdge
(graph, source, target, type)
src/graphology/src/utils.js:44
↓ 12 callers
Method
import
* Method used to import a serialized graph. * * @param {object|Graph} data - The serialized graph. * @param {boolean} merge - Whether
src/graphology/src/graph.js:2616
↓ 12 callers
Function
privateProperty
(target, name, value)
src/graphology/src/utils.js:101
↓ 12 callers
Function
updater
src/graphology/tests/attributes.js:418
↓ 11 callers
Function
distinctSize
(o)
src/communities-louvain/benchmark/comparison.js:48
↓ 11 callers
Function
distinctSize
(obj)
src/communities-louvain/test/index.js:31
↓ 11 callers
Method
dropNode
* Method used to drop a single node & all its attached edges from the graph. * * @param {any} node - The node. * @return {Graph} *
src/graphology/src/graph.js:1851
↓ 11 callers
Function
fromData
(G, nodes, edges)
src/metrics/test/graph/modularity.js:39
↓ 11 callers
Function
identity
(v)
src/graphml/common/parser.js:19
↓ 11 callers
Function
louvain
* Function returning the communities mapping of the graph. * * @param {boolean} assign - Assign communities to nodes attributes? * @pa
src/communities-louvain/index.js:689
↓ 11 callers
Function
readOnlyProperty
(target, name, value)
src/graphology/src/utils.js:117
↓ 11 callers
Method
reduceNodes
* Method reducing nodes. * * @param {function} callback - Callback (accumulator, key, attributes).
src/graphology/src/graph.js:2521
↓ 10 callers
Method
areNeighbors
* Method returning whether two nodes are neighbors. * * @param {any} node - The node's key. * @param {any} neighbor - The neigh
src/graphology/src/graph.js:1080
↓ 10 callers
Function
coerceToDefault
(v)
src/utils/getters.js:17
↓ 10 callers
Function
deepApproximatelyEqual
(t, o, precision)
src/metrics/test/centrality/edge-betweenness.js:19
↓ 10 callers
Method
opposite
* Given a node & an edge, returns the other extremity of the edge. * * @param {any} node - The node's key. * @param {any} edge - The ed
src/graphology/src/graph.js:1616
↓ 10 callers
Function
topologicalSort
(graph)
src/dag/topological-sort.js:88
↓ 9 callers
Function
chain
()
src/graphology/src/utils.js:165
↓ 9 callers
Function
connectedComponents
* Function returning a list of a graph's connected components as arrays * of node keys. * * @param {Graph} graph - Target graph. * @return {array
src/components/index.js:139
↓ 9 callers
Function
deepApproximatelyEqual
(t, o, precision)
src/metrics/test/centrality/betweenness.js:19
↓ 9 callers
Function
deepApproximatelyEqual
(t, o, precision)
src/metrics/test/centrality/closeness.js:14
↓ 9 callers
Method
directedEdge
* Method returning the edge matching source & target in a directed fashion. * * @param {any} source - The edge's source. * @param {any} tar
src/graphology/src/graph.js:863
↓ 9 callers
Function
findRelevantNodeData
( graph, method, mode, nodeOrEdge, nameOrEdge, add1, add2 )
src/graphology/src/attributes/nodes.js:14
↓ 9 callers
Method
fromGraph
(graph: Graph<NodeAttributes>, node: unknown)
src/utils/getters.d.ts:19
↓ 9 callers
Method
inDegree
* Method returning the given node's in degree. * * @param {any} node - The node's key. * @return {number} - The node's in degree.
src/graphology/src/graph.js:1172
↓ 9 callers
Method
isDirected
* Method returning whether the given edge is directed. * * @param {any} edge - The edge's key. * @return {boolean} * * @throws {Er
src/graphology/src/graph.js:1690
↓ 9 callers
Function
largestConnectedComponentSubgraph
* Function returning a subgraph composed of the largest component of the given graph. * * @param {Graph} graph - Target graph. * @return {Graph}
src/components/index.js:205
↓ 9 callers
Function
lookup
(communities)
src/metrics/test/graph/modularity.js:61
↓ 9 callers
Method
nullCopy
* Method returning a null copy of the graph, i.e. a graph without nodes * & edges but with the exact same options. * * @param {object} optio
src/graphology/src/graph.js:2748
↓ 9 callers
Method
toString
* Method returning [object Graph].
src/graphology/src/graph.js:2853
↓ 9 callers
Method
undirectedEdge
* Method returning the edge matching source & target in a undirected fashion. * * @param {any} source - The edge's source. * @param {any} t
src/graphology/src/graph.js:902
↓ 8 callers
Function
collectLayout
(graph, options)
src/layout/utils.js:15
↓ 8 callers
Function
deepApproximatelyEqual
(t, o, precision)
src/layout/test/test-utils.js:3
↓ 8 callers
Function
deepApproximatelyEqual
(t, o, precision)
src/metrics/test/centrality/eigenvector.js:11
↓ 8 callers
Method
replaceAttributes
* Method replacing the graph's attributes. * * @param {object} attributes - New attributes. * @return {Graph} * * @throws {Error} - Wi
src/graphology/src/graph.js:2170
↓ 8 callers
Method
updateNode
* Method used to add a node if it does not exist in the graph or else to * update its attributes using a function. * * @param {any} nod
src/graphology/src/graph.js:1801
↓ 7 callers
Function
addNodesFrom
(graph, nodes)
src/operators/test.js:25
↓ 7 callers
Method
assign
(graph: Graph, iterations: number)
src/layout-forceatlas2/index.d.ts:50
↓ 7 callers
Method
everyNode
* Method returning whether all node verify the given predicate. * * @param {function} callback - Callback (key, attributes).
src/graphology/src/graph.js:2470
↓ 7 callers
Function
lookup
(o)
src/communities-louvain/test/index.js:39
↓ 7 callers
Method
outDegree
* Method returning the given node's out degree. * * @param {any} node - The node's key. * @return {number} - The node's in degree.
src/graphology/src/graph.js:1195
↓ 7 callers
Function
rng
()
src/layout/test/random.js:10
↓ 7 callers
Method
someNode
* Method returning whether some node verify the given predicate. * * @param {function} callback - Callback (key, attributes).
src/graphology/src/graph.js:2446
↓ 7 callers
Function
stronglyConnectedComponents
* Function returning a list of strongly connected components. * * @param {Graph} graph - Target directed graph. * @return {array}
src/components/index.js:253
↓ 6 callers
Method
assign
(graph: Graph, angle: number, options?: RotationOptions)
src/layout/rotation.d.ts:13
↓ 6 callers
Function
attachStaticFromMethod
* Attaching static #.from method to each of the constructors.
src/graphology/src/classes.js:112
↓ 6 callers
Function
attachStaticFromMethod
* Attaching static #.from method to each of the constructors.
src/graphology/src/index.js:48
next →
1–100 of 607, ranked by callers