(from_id: &str, to_id: &str, kind: &str)
| 618 | /// Encode a KG edge key as "from_id\0to_id\0kind". |
| 619 | #[inline] |
| 620 | pub fn encode_edge_key(from_id: &str, to_id: &str, kind: &str) -> String { |
| 621 | format!("{}\0{}\0{}", from_id, to_id, kind) |
| 622 | } |
| 623 | |
| 624 | /// Decode a KG edge key into (from_id, to_id, kind). |
| 625 | #[inline] |
no outgoing calls