1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::NodeIndex;
use std::{
    cmp::{max, min},
    ops::Range,
};

pub mod directed;
pub mod undirected;

mod simple;
#[cfg(feature = "wolfram_wxf")]
mod wolfram;

pub trait Edge {
    fn from(&self) -> NodeIndex;
    fn goto(&self) -> NodeIndex;
    fn bidirectional(&self) -> bool {
        true
    }
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EdgeDirection {
    TwoWay,
    Forward,
    Reverse,
}