src/main/java/org/iota/ict/ixi/model/Graph.java
public String createVertex(String data, String[] edges) {
        if(!InputValidator.isValidHash(data) || !InputValidator.areValidHashes(edges))
            return null;
        String vertex = startVertex(data, edges[0]);
        for(int i = 1; i < edges.length; i++)
            vertex = addEdge(vertex, edges[i]);
        return vertex;
    }
/**
     * Creates a vertex with trunk pointing to the data and branch pointing to the outgoing vertex tails that are to be referenced.
     * @param data the hash of the data bundle fragment tail that is to be referenced
     * @param edges the hashes of all outgoing vertex tails that are to be referenced
     * @return the hash of the created vertex tail
     */
Creates a vertex with trunk pointing to the data and branch pointing to the outgoing vertex tails that are to be referenced.
@param data the hash of the data bundle fragment tail that is to be referenced
@param edges the hashes of all outgoing vertex tails that are to be referenced
@return the hash of the created vertex tail
Creates a vertex with trunk pointing to the data and branch pointing to the outgoing vertex tails that are to be referenced . @param data the hash of the data bundle fragment tail that is to be referenced @param edges the hashes of all outgoing vertex tails that are to be referenced @return the hash of the created vertex tail
public String createVertex(String data, String[] edges) {
        if(!InputValidator.isValidHash(data) || !InputValidator.areValidHashes(edges))
            return null;
        String vertex = startVertex(data, edges[0]);
        for(int i = 1; i < edges.length; i++)
            vertex = addEdge(vertex, edges[i]);
        return vertex;
    }
public String createVertex ( String data , String [ ] edges ) { if ( ! InputValidator . isValidHash ( data ) || ! InputValidator . areValidHashes ( edges ) ) return null ; String vertex = startVertex ( data , edges [ 0 ] ) ; for ( int i = 1 ; i < edges . length ; i ++ ) vertex = addEdge ( vertex , edges [ i ] ) ; return vertex ; }
Creates a vertex with trunk pointing to the data and branch pointing to the outgoing vertex tails that are to be referenced.
Creates a vertex with trunk pointing to the data and branch pointing to the outgoing vertex tails that are to be referenced .