wolf-graph-dot 0.1.0

Adds support for generating Graphviz DOT files from wolf-graph graphs.
Documentation
use std::fmt;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct ArrowType(&'static str);

impl ArrowType {
    pub const BOX: ArrowType = ArrowType("box");
    pub const CROW: ArrowType = ArrowType("crow");
    pub const DIAMOND: ArrowType = ArrowType("diamond");
    pub const DOT: ArrowType = ArrowType("dot");
    pub const INV: ArrowType = ArrowType("inv");
    pub const NONE: ArrowType = ArrowType("none");
    pub const NORMAL: ArrowType = ArrowType("normal");
    pub const TEE: ArrowType = ArrowType("tee");
    pub const VEE: ArrowType = ArrowType("vee");
    pub const ODOT: ArrowType = ArrowType("odot");
    pub const INVDOT: ArrowType = ArrowType("invdot");
    pub const INVODOT: ArrowType = ArrowType("invodot");
    pub const OBOX: ArrowType = ArrowType("obox");
    pub const ODIAMOND: ArrowType = ArrowType("odiamond");
}

impl fmt::Display for ArrowType {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}