PAMI.subgraphMining.topK package
Submodules
PAMI.subgraphMining.topK.DFSCode module
PAMI.subgraphMining.topK.DFSThread module
- class PAMI.subgraphMining.topK.DFSThread.DfsThread(graphDb, candidates, minSup, tkgInstance)[source]
Bases:
Thread
- run()[source]
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
PAMI.subgraphMining.topK.abstract module
PAMI.subgraphMining.topK.edge module
PAMI.subgraphMining.topK.extendedEdge module
PAMI.subgraphMining.topK.frequentSubgraph module
PAMI.subgraphMining.topK.graph module
PAMI.subgraphMining.topK.sparseTriangularMatrix module
PAMI.subgraphMining.topK.tkg module
- class PAMI.subgraphMining.topK.tkg.TKG(iFile, k, maxNumberOfEdges=inf, outputSingleVertices=True, outputGraphIds=False)[source]
Bases:
_TKG
- DYNAMIC_SEARCH = True
- EDGE_COUNT_PRUNING = True
- ELIMINATE_INFREQUENT_EDGE_LABELS = True
- ELIMINATE_INFREQUENT_VERTEX_PAIRS = True
- ELIMINATE_INFREQUENT_VERTICES = True
- THREADED_DYNAMIC_SEARCH = True
- gSpan(graphDB, outputFrequentVertices)[source]
The main gSpan function to find frequent subgraphs. :param graphDb: The database of graphs to mine. :param outputFrequentVertices: Boolean indicating whether to output single vertices as subgraphs.
- readGraphs(path)[source]
The readGraphs function reads graph data from a file and constructs a list of graphs with vertices and edges.
- Parameters:
path – This method reads the graph data from the specified file and constructs a list of graphs
represented by vertices and edges :return: The readGraphs method returns a list of _ab.Graph objects, which represent graphs read from the file.
- save(oFile)[source]
The save function writes subgraph information to a file in a specific format.
- Parameters:
oFile – The oFile parameter in the save method is the file path where the output will be
saved. This method writes the subgraphs information to the specified file in a specific format