forked from awsirkis/nemoStaticLib2.1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubgraphProfile.h
More file actions
48 lines (39 loc) · 1.43 KB
/
Copy pathSubgraphProfile.h
File metadata and controls
48 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SubgraphProfile.h
* Author: Wooyoung
*
* Created on October 29, 2017, 3:05 PM
*/
#ifndef SUBGRAPHPROFILE_H
#define SUBGRAPHPROFILE_H
#include "SubgraphEnumerationResult.h"
// The primary structure of a subgraph profile. Essentially a table to map
// labels(String) and nodes(Integer) to the frequency of subgraphs
// of type label that include the node.
/* This class will have two maps: subgraphprofile and subgraphcount map */
class SubgraphProfile:public SubgraphEnumerationResult {
public:
// get the size of vertex as parameter
SubgraphProfile(uint64);
virtual ~SubgraphProfile();
void add(Subgraph&, NautyLink&);
HASH_MAP <graph64, double> getRelativeFrequencies();
HASH_MAP<graph64, vector<uint64>> getlabelVertexFreqMapMap();
HASH_MAP<graph64, uint64> getlabelFreqMap(int); //need subgraphsize to calculate frequency
/**
* Merge this SubgraphProfile with another SubgraphProfile
* @param other the other SubgraphProfile to merge with this
* SubgraphProfile
*/
void merge();
private:
HASH_MAP<graph64, vector<uint64>> labelVertexFreqMapMap;
uint64 getTotalSubgaphCount();
uint64 graphsize;
};
#endif /* SUBGRAPHPROFILE_H */