*/ public function findFiltered(string $type = '', int $limit = 100): array; /** * Holt Relation-Typen mit Count. * * @return array */ public function getTypes(): array; /** * Holt Relation-Statistiken. * * @return array{total: int, sources: int, targets: int} */ public function getStats(): array; /** * Findet eine Relation nach ID. * * @return array|null */ public function find(int $id): ?array; /** * Erstellt eine neue Relation. * * @return int ID der neuen Relation */ public function create(int $sourceId, int $targetId, string $type, float $strength = 1.0): int; /** * Aktualisiert eine Relation. */ public function update(int $id, string $type, float $strength): bool; /** * Löscht eine Relation. */ public function delete(int $id): bool; /** * Holt vordefinierte Relation-Typen. * * @return array */ public function getTypesList(): array; }