Ag108/MoonHyperPart/src/model does not have a README file

    Hypergraph

    type Hypergraph derive(
    Debug
    )

    An owned immutable hypergraph, using CSR in both incidence directions.

    Hypergraph::degree

    fn Hypergraph::degree(self : Hypergraph, v : Int) -> Int

    Number of edges incident to vertex v. Requires a valid vertex index.

    Hypergraph::edge_count

    fn Hypergraph::edge_count(self : Hypergraph) -> Int

    Number of hyperedges, including singleton hyperedges.

    Hypergraph::edge_size

    fn Hypergraph::edge_size(self : Hypergraph, e : Int) -> Int

    Number of pins in edge e. Requires a valid edge index.

    Hypergraph::edge_weight

    fn Hypergraph::edge_weight(self : Hypergraph, e : Int) -> Int64

    Positive weight of an edge. Requires 0 <= e < edge_count().

    Hypergraph::incident_at

    fn Hypergraph::incident_at(self : Hypergraph, v : Int, i : Int) -> Int

    Incident edge at index i of vertex v. Requires valid indices.

    Hypergraph::pin_at

    fn Hypergraph::pin_at(self : Hypergraph, e : Int, i : Int) -> Int

    Vertex at pin i of edge e. Requires valid edge and pin indices.

    Hypergraph::pin_count

    fn Hypergraph::pin_count(self : Hypergraph) -> Int

    Total number of pins.

    Hypergraph::total_edge_weight

    fn Hypergraph::total_edge_weight(self : Hypergraph) -> Int64

    Checked sum of all edge weights (an upper bound on bipartition cut-net).

    Hypergraph::total_vertex_weight

    fn Hypergraph::total_vertex_weight(self : Hypergraph) -> Int64

    Checked sum of all vertex weights.

    Hypergraph::vertex_count

    fn Hypergraph::vertex_count(self : Hypergraph) -> Int

    Number of vertices, including isolated vertices.

    Hypergraph::vertex_weight

    fn Hypergraph::vertex_weight(self : Hypergraph, v : Int) -> Int64

    Positive weight of a vertex. Requires 0 <= v < vertex_count().

    InputError

    pub(all) struct InputError {
    code : String
    line : Int
    message : String
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    Input/resource errors. line is one based for text, zero for memory input.

    InputError::equal

    fn InputError::equal(InputError, InputError) -> Bool

    InputError::not_equal

    fn InputError::not_equal(x : InputError, y : InputError) -> Bool

    InputError::to_json

    Limits

    pub(all) struct Limits {
    max_vertices : Int
    max_edges : Int
    max_pins : Int
    max_text_bytes : Int
    } derive(Eq,
    Debug
    )

    Allocation limits checked before constructing the incidence arrays.

    Limits::default

    fn Limits::default() -> Limits

    Conservative defaults for the single-level implementation.

    Limits::equal

    fn Limits::equal(Limits, Limits) -> Bool

    Limits::not_equal

    fn Limits::not_equal(x : Limits, y : Limits) -> Bool

    Limits::to_repr

    build

    fn build(vertex_weights : Array[Int64], edges : Array[Array[Int]], edge_weights : Array[Int64], limits? : Limits) -> Result[Hypergraph, InputError]

    Validate and own the input. Pins use zero-based vertex indices.

    max_weight

    let max_weight : Int64

    Maximum positive weight/sum accepted on every backend.

    Source Files