org.jgrapht.io.VertexProvider Maven / Gradle / Ivy
/*
* (C) Copyright 2015-2017, by Wil Selwood and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* This program and the accompanying materials are dual-licensed under
* either
*
* (a) the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation, or (at your option) any
* later version.
*
* or (per the licensee's choosing)
*
* (b) the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation.
*/
package org.jgrapht.io;
import java.util.*;
/**
* Creates a vertex.
*
* @param the vertex type
*/
public interface VertexProvider
{
/**
* Create a vertex
*
* @param id a unique identifier for the vertex
* @param attributes any other attributes of the vertex
* @return the vertex
*/
V buildVertex(String id, Map attributes);
}
// End VertexProvider.java