You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
775 B

4 months ago
import { GraphData } from "../types";
export interface EdgeMap {
[key: string]: {
idx: number;
edge: any;
};
}
export interface NodeMap {
[key: string]: {
idx: number;
node: any;
degree: number;
inDegree: number;
outDegree: number;
};
}
interface GraphDataMap {
[key: string]: GraphData;
}
interface Props {
graphs: GraphDataMap;
minSupport: number;
directed?: boolean;
nodeLabelProp?: string;
edgeLabelProp?: string;
minNodeNum?: number;
maxNodeNum?: number;
top?: number;
verbose?: boolean;
}
/**
* gSpan frequent graph mining
* @param params
*/
declare const gSpan: (params: Props) => GraphData[];
export default gSpan;