fn has(&self, edge_key: EdgeKey) -> bool {
        let r_transaction = self.graph_database.get_transaction();
        if r_transaction.is_ok() {
            let transaction = r_transaction.unwrap();
            let edges = transaction.get_edges(SpecificEdgeQuery::single(edge_key));
            return edges.unwrap().len() > 0;
        }
        false
    }
// // TODO: move out of RelationEdgeManager and allow static access (EdgeKeyBuilder ?)
// // No usage of &self !
// fn get_key(&self, outbound_id: Uuid, type_name: String, inbound_id: Uuid) -> Result<EdgeKey, RelationEdgeKeyInvalid> {
//     let t = Type::from_str(type_name.as_str());
//     if t.is_ok() {
//         return Ok(EdgeKey::new(outbound_id, t.unwrap(), inbound_id));
//     }
//     Err(RelationEdgeKeyInvalid.into())
// }
move out of RelationEdgeManager and allow static access (EdgeKeyBuilder ?)
No usage of &self .
move out of RelationEdgeManager and allow static access ( EdgeKeyBuilder ? ) No usage of &self .
fn has(&self, edge_key: EdgeKey) -> bool {
        let r_transaction = self.graph_database.get_transaction();
        if r_transaction.is_ok() {
            let transaction = r_transaction.unwrap();
            let edges = transaction.get_edges(SpecificEdgeQuery::single(edge_key));
            return edges.unwrap().len() > 0;
        }
        false
    }
fn has ( & self , edge_key : EdgeKey ) -> bool { let r_transaction = self . graph_database . get_transaction ( ) ; if r_transaction . is_ok ( ) { let transaction = r_transaction . unwrap ( ) ; let edges = transaction . get_edges ( SpecificEdgeQuery :: single ( edge_key ) ) ; return edges . unwrap ( ) . len ( ) > 0 ; } false }
TODO: move out of RelationEdgeManager and allow static access (EdgeKeyBuilder ?)
TODO : move out of RelationEdgeManager and allow static access ( EdgeKeyBuilder ? )
&self
edge_key
EdgeKey
&self
edge_key
EdgeKey