Provides main classes for the weighted graphs.