adjacency-list 0.0.2

Adjacency List and Adjacency Graph
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::utils::ShortEdge;
use graph_types::{
    placeholder::{PlaceholderEdgeIterator, PlaceholderNodeIterator},
    Edge, EdgeDirection, EdgeInsertID, EdgeQuery, GraphEngine, GraphKind, MutableGraph, NodeRangeVisitor, NodesVisitor,
};
use std::collections::{BTreeMap, BTreeSet};

mod one_way;
pub mod one_way_iter;
mod two_way;

#[doc = include_str!("AdjacencyEdgeList.html")]
#[derive(Debug)]
pub struct AdjacencyEdgeDict<const ONE_WAY: bool> {
    nodes: BTreeSet<u32>,
    edges: BTreeMap<u32, ShortEdge>,
}