(from_id: &str, to_id: &str, kind: &str)
| 609 | /// Encode a KG edge key as "from_id\0to_id\0kind". |
| 610 | #[inline] |
| 611 | pub fn encode_edge_key(from_id: &str, to_id: &str, kind: &str) -> String { |
| 612 | format!("{}\0{}\0{}", from_id, to_id, kind) |
| 613 | } |
| 614 | |
| 615 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 616 | #[inline] |
no outgoing calls