Skip to content

DAMA-UPC/gnormalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNORMALIZER Build Status Codacy Badge Codacy Badge

How to use the library

Step 1: Add dependency:

https://bintray.com/dama-upc/Babel-Platform/babel

If using the SBT tool:

Add the following snippet to the build.sbt file:

resolvers += "maven" at "https://dl.bintray.com/dama-upc/Babel-Platform"
libraryDependencies += "edu.upc.dama" %% "gnormalizer" % "0.7.0"

Step 2: Use it:

For using Gnormalizer, we can use its builder API directly for specifying the input graph and its format. Then, we need to specify the output graph location and format and call the execute() method. The following code snippet shows an example usage of the library:

import gnormalizer._

Gnormalizer
  .builder()
  .inputFile("./input/connections.graph", EdgeList)
  .outputFile("./output/connections.graph", EdgeList)
  .execute()

If we want a verbose mode, printing the graph as soon as its been normalized or we to overload the default startDeserializationAtLine and/or bucketSize default configurations, we can call an overloaded execute method as in the following code snippet:

import gnormalizer._

Gnormalizer
  .builder()
  .inputFile("./input/connections.graph", EdgeList)
  .outputFile("./output/connections.graph", EdgeList)
  .execute(
    startDeserializationAtLine = Some(2), // Default -> 1
    bucketSize = Some(3000), // Default -> 4500
    verboseLog = true // Default -> false
  )

About

Graph Format Normalization Library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages