title: Extending SimpleWeightedGraph - JgraphT
body: <p>I wanted to know about the right way to extend the SimpleWeightedGraph from JgraphT library so that I could use a simplified alias and also include additional functionalities as required.</p>
  
  <p>Instead of creating a new graph each time using</p>
  
  <pre><code>SimpleWeightedGraph&lt;Node, DefaultWeightedEdge&gt; graph 
  = new SimpleWeightedGraph&lt;Node, DefaultWeightedEdge&gt;(DefaultWeightedEdge.class);
  </code></pre>
  
  <p>I created a class</p>
  
  <pre><code>public class CustomGraph extends SimpleWeightedGraph&lt;Node, DefaultWeightedEdge&gt;{    
  
      public CustomGraph(){
          super(DefaultWeightedEdge.class);
      }
      /*Additional custom methods*/
  }
  </code></pre>
  
  <p>So that I can instantiate using </p>
  
  <pre><code>CustomGraph graph = new CustomGraph();
  </code></pre>
  
  <p>But this doesn't seem to create the object. Am i missing any other constructor for this?</p>