Skip to content

giacomocavalieri/graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

graph

Package Version Hex Docs

A package for working with graphs in Gleam!

gleam add graph
import graph

pub fn main() {
  let graph =
    graph.new()
    |> graph.insert_node(1, "one node")
    |> graph.insert_node(2, "anoter node")
    |> graph.insert_directed_edge("label", from: 1, to: 2)

  assert graph.has_edge(graph, from: 1, to: 2)
  assert !graph.has_edge(graph, from: 2, to: 1)
}

About

๐ŸŒ A graph library in Gleam

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages