Skip to main content

HypergraphBuilder

Struct HypergraphBuilder 

Source
pub struct HypergraphBuilder { /* private fields */ }
Expand description

Builder for constructing a multi-layer hypergraph.

Implementations§

Source§

impl HypergraphBuilder

Source

pub fn new(config: HypergraphConfig) -> Self

Create a new builder with the given configuration.

Source

pub fn add_coso_framework(&mut self)

Add COSO framework as Layer 1 nodes (5 components + 17 principles).

Source

pub fn add_controls(&mut self, controls: &[InternalControl])

Add internal controls as Layer 1 nodes with edges to COSO components.

Source

pub fn add_vendors(&mut self, vendors: &[Vendor])

Add vendor master data as Layer 1 nodes.

Source

pub fn add_customers(&mut self, customers: &[Customer])

Add customer master data as Layer 1 nodes.

Source

pub fn add_employees(&mut self, employees: &[Employee])

Add employee/organizational nodes as Layer 1 nodes.

Source

pub fn add_accounts(&mut self, coa: &ChartOfAccounts)

Add GL accounts as Layer 3 nodes.

Source

pub fn add_journal_entries_as_hyperedges(&mut self, entries: &[JournalEntry])

Add journal entries as Layer 3 hyperedges.

Each journal entry becomes a hyperedge connecting its debit and credit accounts.

Source

pub fn add_p2p_documents( &mut self, purchase_orders: &[PurchaseOrder], goods_receipts: &[GoodsReceipt], vendor_invoices: &[VendorInvoice], payments: &[Payment], )

Add P2P document chains as Layer 2 nodes.

If a vendor has more documents than the threshold, they’re aggregated into pool nodes.

Source

pub fn add_o2c_documents( &mut self, sales_orders: &[SalesOrder], deliveries: &[Delivery], customer_invoices: &[CustomerInvoice], )

Add O2C document chains as Layer 2 nodes.

Source

pub fn build_cross_layer_edges(&mut self)

Build cross-layer edges linking governance to accounting and process layers.

Source

pub fn build(self) -> Hypergraph

Finalize and build the Hypergraph.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V