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 add_s2c_documents( &mut self, projects: &[SourcingProject], qualifications: &[SupplierQualification], rfx_events: &[RfxEvent], bids: &[SupplierBid], evaluations: &[BidEvaluation], contracts: &[ProcurementContract], )

Add S2C (Source-to-Contract) documents as Layer 2 nodes.

Source

pub fn add_h2r_documents( &mut self, payroll_runs: &[PayrollRun], time_entries: &[TimeEntry], expense_reports: &[ExpenseReport], )

Add H2R (Hire-to-Retire) documents as Layer 2 nodes.

Source

pub fn add_mfg_documents( &mut self, production_orders: &[ProductionOrder], quality_inspections: &[QualityInspection], cycle_counts: &[CycleCount], )

Add MFG (Manufacturing) documents as Layer 2 nodes.

Source

pub fn add_bank_documents( &mut self, customers: &[BankingCustomer], accounts: &[BankAccount], transactions: &[BankTransaction], )

Add Banking documents as Layer 2 nodes.

Source

pub fn add_audit_documents( &mut self, engagements: &[AuditEngagement], workpapers: &[Workpaper], findings: &[AuditFinding], evidence: &[AuditEvidence], risks: &[RiskAssessment], judgments: &[ProfessionalJudgment], )

Add Audit documents as Layer 2 nodes.

Source

pub fn add_bank_recon_documents( &mut self, reconciliations: &[BankReconciliation], )

Add Bank Reconciliation documents as Layer 2 nodes.

Source

pub fn add_ocpm_events(&mut self, event_log: &OcpmEventLog)

Add OCPM events as hyperedges connecting their participating objects.

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more