00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _CJNLTOPOLOGYUTIL_H_
00021 #define _CJNLTOPOLOGYUTIL_H_ 1
00022
00023 #include <map>
00024 #include <string>
00025 #include "CjNLTopology.hh"
00026
00027 namespace jmitie {
00028
00029
00030
00031
00033 std::map<unsigned int, unsigned int> returnDegreeDist(const CjNLTopology & top);
00034
00036 std::map<CjNLTopology::WT, unsigned int> returnDistancesDist(const CjNLTopology & top);
00038 std::map<CjNLTopology::WT, unsigned int> returnWeightDist(const CjNLTopology & top);
00039
00040 std::string returnDistancesDump(const CjNLTopology & top, const unsigned int cellWidth, const std::string & rowPrefix, bool blankDiagonal = false );
00041 std::string returnAdjLDump(const CjNLTopology & top, const unsigned int cellWidth, const std::string & rowPrefix);
00042 std::string returnWeightsDump(const CjNLTopology & top, const unsigned int cellWidth, const std::string & rowPrefix, bool blankDiagonal = false );
00043
00044 }
00045
00046 #endif // _CJNLTOPOLOGYUTIL_H_