import Graph, {Attributes} from 'graphology-types'; type SubGraphFilter = ( key: string, attributes: NodeAttributes ) => boolean; type SubGraphNodes = | Array | Set | SubGraphFilter; export default function subgraph< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes, GraphAttributes extends Attributes = Attributes >( graph: Graph, nodes: SubGraphNodes ): Graph;