@@ -6,13 +6,13 @@ use crate::{
66 persist:: strategy:: { Config , PersistentStrategy } ,
77 properties:: props_meta_writer:: PropsMetaWriter ,
88 segments:: { edge:: MemEdgeSegment , node:: MemNodeSegment } ,
9- GPS ,
9+ GS ,
1010} ;
1111use edge_page:: writer:: EdgeWriter ;
1212use edge_store:: EdgeStorageInner ;
1313use node_page:: writer:: { NodeWriter , WriterPair } ;
1414use node_store:: NodeStorageInner ;
15- use graph_prop_store :: GraphPropStorageInner ;
15+ use graph_store :: GraphStorageInner ;
1616use parking_lot:: RwLockWriteGuard ;
1717use raphtory_api:: core:: {
1818 entities:: properties:: { meta:: Meta , prop:: Prop } ,
@@ -40,7 +40,7 @@ pub mod locked;
4040pub mod node_page;
4141pub mod node_store;
4242pub mod session;
43- pub mod graph_prop_store ;
43+ pub mod graph_store ;
4444#[ cfg( any( test, feature = "test-utils" ) ) ]
4545pub mod test_utils;
4646
@@ -50,7 +50,7 @@ pub mod test_utils;
5050pub struct GraphStore < NS , ES , EXT : Config > {
5151 nodes : Arc < NodeStorageInner < NS , EXT > > ,
5252 edges : Arc < EdgeStorageInner < ES , EXT > > ,
53- graph_props : Arc < GraphPropStorageInner < GPS , EXT > > ,
53+ graph : Arc < GraphStorageInner < GS , EXT > > ,
5454 graph_dir : Option < PathBuf > ,
5555 event_id : AtomicUsize ,
5656 _ext : EXT ,
9696 & self . edges
9797 }
9898
99- pub fn graph_props ( & self ) -> & Arc < GraphPropStorageInner < GPS , EXT > > {
100- & self . graph_props
99+ pub fn graph ( & self ) -> & Arc < GraphStorageInner < GS , EXT > > {
100+ & self . graph
101101 }
102102
103103 pub fn edge_meta ( & self ) -> & Meta {
@@ -109,7 +109,7 @@ impl<
109109 }
110110
111111 pub fn graph_meta ( & self ) -> & GraphMeta {
112- self . graph_props . graph_meta ( )
112+ self . graph . graph_meta ( )
113113 }
114114
115115 pub fn earliest ( & self ) -> i64 {
@@ -142,14 +142,14 @@ impl<
142142 }
143143
144144 // Load graph temporal properties and metadata
145- let meta = Arc :: new ( GraphPropStorageInner :: load ( meta_path, ext. clone ( ) ) ?) ;
145+ let meta = Arc :: new ( GraphStorageInner :: load ( meta_path, ext. clone ( ) ) ?) ;
146146
147147 let t_len = edges. t_len ( ) ;
148148
149149 Ok ( Self {
150150 nodes,
151151 edges,
152- graph_props : meta,
152+ graph : meta,
153153 event_id : AtomicUsize :: new ( t_len) ,
154154 graph_dir : Some ( graph_dir. as_ref ( ) . to_path_buf ( ) ) ,
155155 _ext : ext,
@@ -182,7 +182,7 @@ impl<
182182 edge_meta,
183183 ext. clone ( ) ,
184184 ) ) ;
185- let graph_prop_storage = Arc :: new ( GraphPropStorageInner :: new_with_meta (
185+ let graph_prop_storage = Arc :: new ( GraphStorageInner :: new_with_meta (
186186 graph_props_path,
187187 graph_meta,
188188 ext. clone ( ) ,
@@ -195,7 +195,7 @@ impl<
195195 Self {
196196 nodes : node_storage,
197197 edges : edge_storage,
198- graph_props : graph_prop_storage,
198+ graph : graph_prop_storage,
199199 event_id : AtomicUsize :: new ( 0 ) ,
200200 graph_dir : graph_dir. map ( |p| p. to_path_buf ( ) ) ,
201201 _ext : ext,
0 commit comments