Network export data structure

interface NetworkExportData {
    edges: {
        source: string;
        strength: number;
        target: string;
        type: string;
    }[];
    metrics: {
        averageDegree: number;
        density: number;
        edgeCount: number;
        nodeCount: number;
    };
    nodes: {
        id: string;
        position?: {
            x: number;
            y: number;
        };
        properties: Record<string, PropertyValue>;
        type: string;
    }[];
}

Properties

Properties

edges: {
    source: string;
    strength: number;
    target: string;
    type: string;
}[]

Type declaration

  • source: string
  • strength: number
  • target: string
  • type: string
metrics: {
    averageDegree: number;
    density: number;
    edgeCount: number;
    nodeCount: number;
}

Type declaration

  • averageDegree: number
  • density: number
  • edgeCount: number
  • nodeCount: number
nodes: {
    id: string;
    position?: {
        x: number;
        y: number;
    };
    properties: Record<string, PropertyValue>;
    type: string;
}[]

Type declaration

  • id: string
  • Optional position?: {
        x: number;
        y: number;
    }
    • x: number
    • y: number
  • properties: Record<string, PropertyValue>
  • type: string