pub struct AeoGraph { /* private fields */ }Expand description
Container for a single loaded crawl.
Implementations§
Source§impl AeoGraph
impl AeoGraph
Sourcepub fn from_jsonl(raw: &str) -> Result<Self, GraphError>
pub fn from_jsonl(raw: &str) -> Result<Self, GraphError>
Build a graph from JSONL — one AEO document per line, in the same shape
aeo-crawler emits. Edges are inferred from peers and
authority.primary_sources arrays.
Sourcepub fn upsert(&mut self, node: AeoNode) -> NodeIndex
pub fn upsert(&mut self, node: AeoNode) -> NodeIndex
Insert or replace a node. Edge inference is deferred to
Self::wire_edges so bulk loads only pay for it once.
Sourcepub fn wire_edges(&mut self)
pub fn wire_edges(&mut self)
After all nodes are loaded, walk the bodies and wire up edges.
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Number of nodes in the graph.
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Number of edges in the graph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AeoGraph
impl RefUnwindSafe for AeoGraph
impl Send for AeoGraph
impl Sync for AeoGraph
impl Unpin for AeoGraph
impl UnsafeUnpin for AeoGraph
impl UnwindSafe for AeoGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more