Bom dia caros amigos do GUJ, não conseguí inicializar a classe abaixo, alguém poderia me ajudar?
public class SimpleGraph<V, E>
extends AbstractBaseGraph<V, E>
implements UndirectedGraph<V, E>
{
//~ Static fields/initializers ---------------------------------------------
private static final long serialVersionUID = 3545796589454112304L;
//~ Constructors -----------------------------------------------------------
/**
* Creates a new simple graph with the specified edge factory.
*
* @param ef the edge factory of the new graph.
*/
public SimpleGraph(EdgeFactory<V, E> ef)
{
super(ef, false, false);
}
/**
* Creates a new simple graph.
*
* @param edgeClass class on which to base factory for edges
*/
public SimpleGraph(Class<? extends E> edgeClass)
{
this(new ClassBasedEdgeFactory<V, E>(edgeClass));
}
}
Tentei o seguinte:
UndirectedGraph<Object, DefaultEdge> objectGraph = new SimpleGraph<Object, DefaultEdge>(new Object(),new DefaultEdge());
A ide diz: The constructor SimpleGraph<Object,DefaultEdge>(Object, DefaultEdge) is undefined…
Obrigado pela atenção…