graphology
Advanced tools
Changelog
0.23.0
#.updateAttributes
.#.updateNodeAttributes
.#.updateEdgeAttributes
.#.getSourceAttribute
, #.getTargetAttribute
, #.getOppositeAttribute
and friends.#.updateEachEdgeAttributes
callback arguments to #.forEachEdge
.#.merge*
and #.update*
function by returning useful information.#.opposite
performance.Migration guide
This release should only affect you in the following cases:
#.mergeEdge
, #.updateEdge
etc. In which case those methods now return a useful tuple containing said key as its first element as well as additional information about whether target elements already existed in the graph or not.#.forEach
, #.find
or #.adjacency
(not to be confused with their node, edge & neighbor counterparts).Changelog
0.22.2
#.mergeEdge
& #.updateEdge
error messages.#.addEdge
etc. (less deopt).#.inspect
output wrt undirected multi edges.Changelog
0.22.1
prepublishOnly
script and shipped package.Changelog
0.22.0
#.mapNodes
, #.filterNodes
, #.reduceNodes
, #.findNode
#.someNode
, #.everyNode
.#.mapEdges
, #.filterEdges
, #.reduceEdges
, #.findEdge
#.someEdge
, #.everyEdge
.#.mapNeighbors
, #.filterNeighbors
, #.reduceNeighbors
, #.findNeighbor
#.someNeighbor
, #.everyNeighbor
.#.degreeWithoutSelfLoops
.#.forEach*Until
methods to #.find*
methods.#.hasGeneratedKey
.generated
last argument to edge & adjacency iterations.edgeKeyGenerator
instantiation option.#.degree
.#.neighbors(source, target)
to #.areNeighbors
.#.exportEdge
will now always return a key.#.copy
.undirected
.undirected
.#.clear
, #.clearEdges
.#.copy
performance.#.areNeighbors
performance.#.forEachNode
performance.obliterator
and improving iterator-based methods.Migration guide
This release should only affect you in the following use-cases:
#.forEach*Until
methods, in which case you should replace them by the relevant #.find*
or #.some*
method.#.degree
methods. Replace those calls by #.degreeWithoutSelfLoops
.#.neighbors
. Replace those calls by #.areNeighbors
.Changelog
0.21.1
#.removeNodeAttribute
error message.0.20.0
.Changelog
0.21.0
*Until
methods now return whether they broke.#.forEachNodeUntil
.Changelog
0.20.0