com.arangodb.entity.ShortestPathEntity Maven / Gradle / Ivy
/**
* Copyright 2004-2015 triAGENS GmbH, Cologne, Germany
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Copyright holder is triAGENS GmbH, Cologne, Germany
*
* @author a-brandt
* @author Copyright 2015, triAGENS GmbH, Cologne, Germany
*/
package com.arangodb.entity;
import java.util.List;
import com.arangodb.entity.marker.VertexEntity;
/**
* @author a-brandt
*/
public class ShortestPathEntity extends BaseEntity {
/**
* path distance
*/
private Long distance;
/**
* List of edges of the shortest path.
*/
private List> edges;
/**
* List of vertices of the shortest path. (first vertex is the start vertex
* and the last vertex is the end vertex)
*/
private List> vertices;
/**
* Retuns the distance
*
* @return the distance
*/
public Long getDistance() {
return distance;
}
public void setDistance(Long distance) {
this.distance = distance;
}
/**
* Returns the list of edges of the shortest path.
*
* @return the list of edges of the shortest path.
*/
public List> getEdges() {
return edges;
}
public void setEdges(List> edges) {
this.edges = edges;
}
/**
* Returns the list of vertices of the shortest path.
*
* @return the list of vertices of the shortest path.
*/
public List> getVertices() {
return vertices;
}
public void setVertices(List> vertices) {
this.vertices = vertices;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy