Sign in

    graphviz

    graphviz
    graph
    tree
    Download zip
    Version
    0.1.2
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    41

    No dependencies

    #illusory0x0/graphviz

    A simple library for generate graphviz format file (WIP)

    Digraph

    pub(all) struct Digraph {
    edges : Array[Edge]
    nodes : Array[Node]
    }

    impl Show for Digraph

    Edge

    pub(all) struct Edge {
    from : Int
    to : Int
    label : String
    }

    Edge::new

    fn Edge::new(from~ : Int, to~ : Int, label? : String) -> Edge

    Node

    pub(all) struct Node {
    id : Int
    label : String
    }

    Node::new

    fn Node::new(id~ : Int, label~ : String) -> Node

    Tree

    pub(all) struct Tree {
    label : String
    children : Array[Tree]
    }

    Tree::to_digraph

    fn Tree::to_digraph(self : Tree) -> Digraph

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io