Provides classes for graph with weighted nodes.