Releases: dominikbraun/graph
Releases · dominikbraun/graph
v0.9.0
Added
- Added the
Graph.AddVertex
method for adding a vertex. This replacesGraph.Vertex
. - Added the
Graph.AddEdge
method for creating an edge. This replacesGraph.Edge
. - Added the
Graph.Vertex
method for retrieving a vertex by its hash. This is not to be confused with the oldGraph.Vertex
function for adding vertices that got replaced withGraph.AddVertex
. - Added the
Graph.Edge
method for retrieving an edge. This is not to be confused with the oldGraph.Edge
function for creating an edge that got replaced withGraph.AddEdge
. - Added the
Graph.Predecessors
function for retrieving a vertex' predecessors. - Added the
DFS
function. - Added the
BFS
function. - Added the
CreatesCycle
function. - Added the
StronglyConnectedComponents
function. - Added the
ShortestPath
function. - Added the
ErrEdgeNotFound
error indicating that a desired edge could not be found.
Removed
- Removed the
Graph.EdgeByHashes
method. UseGraph.AddEdge
instead. - Removed the
Graph.GetEdgeByHashes
method. UseGraph.Edge
instead. - Removed the
Graph.DegreeByHash
method. UseGraph.Degree
instead. - Removed the
Graph.Degree
method. - Removed the
Graph.DFS
andGraph.DFSByHash
methods. UseDFS
instead. - Removed the
Graph.BFS
andGraph.BFSByHash
methods. UseBFS
instead. - Removed the
Graph.CreatesCycle
andGraph.CreatesCycleByHashes
methods. UseCreatesCycle
instead. - Removed the
Graph.StronglyConnectedComponents
method. UseStronglyConnectedComponents
instead. - Removed the
Graph.ShortestPath
andGraph.ShortestPathByHash
methods. UseShortestPath
instead.
v0.8.0
Added
- Added the
EdgeWeight
andEdgeAttribute
functional options. - Added the
Properties
field toEdge
.
Changed
- Changed
Edge
to accept a variadicoptions
parameter. - Changed
EdgeByHashes
to accept a variadicoptions
parameter. - Renamed
draw.Graph
todraw.DOT
for more clarity regarding the rendering format.
Removed
- Removed the
WeightedEdge
function. UseEdge
with theEdgeWeight
functional option instead. - Removed the
WeightedEdgeByHashes
function. UseEdgeByHashes
with theEdgeWeight
functional option instead.
Fixed
- Fixed missing edge attributes when drawing a graph using
draw.DOT
.
v0.7.0
Added
- Added
draw
package for graph visualization using DOT-compatible renderers. - Added
Traits
function for retrieving the graph's traits.
v0.6.0
[0.6.0] - 2020-07-22
Added
- Added
AdjacencyMap
function for retrieving an adjancency map for all vertices.
Removed
- Removed the
AdjacencyList
function.
v0.5.0
Added
- Added
AdjacencyList
function for retrieving an adjacency list for all vertices.
Changed
- Updated the examples in the documentation.
v0.4.0
Added
- Added
ShortestPath
function for computing shortest paths.
Changed
- Changed the term "properties" to "traits" in the code and documentation.
- Don't traverse all vertices in disconnected graphs by design.
v0.3.0
Added
- Added
StronglyConnectedComponents
function for detecting SCCs. - Added various images to usage examples.
v0.2.0
Added
- Added
Degree
andDegreeByHash
functions for determining vertex degrees. - Added cycle checks when adding an edge using the
Edge
functions.
v0.1.0
Added
- Added
CreatesCycle
andCreatesCycleByHashes
functions for predicting cycles.
v0.1.0-beta
Changed
- Introduced dedicated types for directed and undirected graphs, making
Graph[K, T]
an interface.