added a frequency map class
integrated frequencymap into digraph
removed useless method