Tabnine Logo
GraphCommunity.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.oculusinfo.tilegen.graph.analytics.GraphCommunity
constructor

Best Java code snippets using com.oculusinfo.tilegen.graph.analytics.GraphCommunity.<init> (Showing top 8 results out of 315)

origin: unchartedsoftware/aperture-tiles

results.add(new GraphCommunity((Integer)value.get("hierLevel"),
                (Long)value.get("id"),
                new Pair<Double, Double>((Double)value.get("x"), (Double)value.get("y")),
origin: unchartedsoftware/aperture-tiles

@Test
public void testRecordAggregation () {
  GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
  
  GraphCommunity community_b = new GraphCommunity(_hierLevel, 
                          456L, 
                          new Pair<Double, Double>(3.3, 4.4),
                          3.4,
                          4,
                          54,
                          "blah4\tblah5",
                          true,
                          _parentID,
                          _parentCoords,
                          _parentRadius,
                          _statsList,
                          _interEdges,
                          _intraEdges);
  GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
  GraphAnalyticsRecord c = new GraphAnalyticsRecord(2, Arrays.asList(community_b, _sampleCommunity));		
  Assert.assertEquals(c, GraphAnalyticsRecord.addRecords(a, b));
}

origin: unchartedsoftware/aperture-tiles

@Test
public void testCommunityToRecord () {
  GraphAnalyticsRecord a = new GraphAnalyticsRecord(1, Arrays.asList(_sampleCommunity));
  
  GraphCommunity community_b = new GraphCommunity(_hierLevel, 
                          456L, 
                          new Pair<Double, Double>(3.3, 4.4),
                          3.4,
                          4,
                          54,
                          "blah4\tblah5",
                          true,
                          _parentID,
                          _parentCoords,
                          _parentRadius,
                          _statsList,
                          _interEdges,
                          _intraEdges);
  GraphAnalyticsRecord c = new GraphAnalyticsRecord(2, Arrays.asList(community_b, _sampleCommunity));		
  Assert.assertEquals(c, GraphAnalyticsRecord.addCommunityToRecord(a, community_b));
}

origin: unchartedsoftware/aperture-tiles

@Test
public void testInterEdgeToCommunity () {
  GraphCommunity a = _sampleCommunity;
  GraphEdge e1 = new GraphEdge(987L, 0.1, 0.2, 999L);
  GraphCommunity b = a;
  b.addInterEdgeToCommunity(e1);
  
  List<GraphEdge> edges = Arrays.asList(e1, 
                    new GraphEdge(0L, 4.3, 2.1, 5L),
                    new GraphEdge(43L, 5.6, 7.8, 3L));
  
  GraphCommunity c = new GraphCommunity(_hierLevel, 
                    _id, 
                    _coords,
                    _radius,
                    _degree,
                    _numNodes,
                    _metadata,
                    _bIsPrimaryNode,
                    _parentID,
                    _parentCoords,
                    _parentRadius,
                    _statsList,
                    edges,
                    _intraEdges);
  Assert.assertEquals(c, b);
}

origin: unchartedsoftware/aperture-tiles

@Test
public void testIntraEdgeToCommunity () {
  GraphCommunity a = _sampleCommunity;
  GraphEdge e2 = new GraphEdge(988L, 0.11, 0.22, 1L);
  GraphCommunity b = a;
  b.addIntraEdgeToCommunity(e2);
  
  List<GraphEdge> edges = Arrays.asList(new GraphEdge(2L, 4.2, 2.0, 6L),
                    new GraphEdge(44L, 5.5, 7.7, 4L),
                    e2);
  
  GraphCommunity c = new GraphCommunity(_hierLevel, 
                    _id, 
                    _coords,
                    _radius,
                    _degree,
                    _numNodes,
                    _metadata,
                    _bIsPrimaryNode,
                    _parentID,
                    _parentCoords,
                    _parentRadius,
                    _statsList,
                    _interEdges,
                    edges);
  Assert.assertEquals(c, b);
}

origin: unchartedsoftware/aperture-tiles

@Test
public void testEmptyRecordAggregation () {
  GraphAnalyticsRecord a = new GraphAnalyticsRecord(0, null);
  
  GraphCommunity community_b = new GraphCommunity(_hierLevel, 
                          456L, 
                          new Pair<Double, Double>(3.3, 4.4),
                          3.4,
                          4,
                          54,
                          "blah4\tblah5",
                          true,
                          _parentID,
                          _parentCoords,
                          _parentRadius,
                          _statsList,
                          _interEdges,
                          _intraEdges);
  GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
  Assert.assertEquals(b, GraphAnalyticsRecord.addRecords(a, b));
}

origin: unchartedsoftware/aperture-tiles

GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphCommunity community_c = new GraphCommunity(1, 
    567L, 
    new Pair<Double, Double>(3.3, 4.4),
origin: unchartedsoftware/aperture-tiles

GraphAnalyticsRecord b = new GraphAnalyticsRecord(1, Arrays.asList(community_b));
GraphCommunity community_c = new GraphCommunity(1, 
    123L, 
    new Pair<Double, Double>(1.2, 3.4),
com.oculusinfo.tilegen.graph.analyticsGraphCommunity<init>

Popular methods of GraphCommunity

  • addEdgeInPlace
  • addInterEdgeToCommunity
    Add an inter-community edge to an existing community, summing counts as needed, and keeping the MAX_
  • addIntraEdgeToCommunity
    Add an intra-community edge to an existing community, summing counts as needed, and keeping the MAX_
  • getCoords
  • getDegree
  • getHierLevel
  • getID
  • getInterEdges
  • getIntraEdges
  • getMetadata
  • getNumNodes
  • getParentCoords
  • getNumNodes,
  • getParentCoords,
  • getParentID,
  • getParentRadius,
  • getRadius,
  • getStatsList,
  • isPrimaryNode,
  • listsEqual,
  • maxInPlace

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Permission (java.security)
    Legacy security code; do not use.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now