public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <V,E> edu.uci.ics.jung.graph.Graph<V,E> |
getLargestComponent(edu.uci.ics.jung.graph.Graph<V,E> g) |
static <V,E> Set<edu.uci.ics.jung.graph.Graph<V,E>> |
getSubGraphs(edu.uci.ics.jung.graph.Graph<V,E> g) |
static Point2D |
intersectLineLine(double a1x,
double a1y,
double a2x,
double a2y,
double b1x,
double b1y,
double b2x,
double b2y) |
static Point2D |
intersectLineLine(Line2D l1,
Line2D l2) |
static Point2D |
intersectLineRectangle(Line2D l,
Rectangle2D r) |
static <V,E> edu.uci.ics.jung.graph.Graph<V,E> |
removeUnconnectedVertices(edu.uci.ics.jung.graph.Graph<V,E> g) |
public static final Point2D intersectLineRectangle(Line2D l, Rectangle2D r)
public static final Point2D intersectLineLine(double a1x, double a1y, double a2x, double a2y, double b1x, double b1y, double b2x, double b2y)
public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> getLargestComponent(edu.uci.ics.jung.graph.Graph<V,E> g)
public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> removeUnconnectedVertices(edu.uci.ics.jung.graph.Graph<V,E> g)
public static <V,E> Set<edu.uci.ics.jung.graph.Graph<V,E>> getSubGraphs(edu.uci.ics.jung.graph.Graph<V,E> g)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.