Download the PHP package neoxygen/neogen without Composer
On this page you can find all versions of the php package neoxygen/neogen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package neogen
Neogen
Graph Generator for Neo4j
The library ease the generation of test graphs. The faker library is also used to generate random property values.
You can define your graph model in YAML or in a slightly modified Cypher pattern.
This is in development
The library is in its early stage and is targetted to be used in developement environment.
This library is the heart of the popular Graphgen web application
Usage
Download the library :
Define your graph model in YAML :
Run the generate command :
or you may want to export the generation queries to a file, handy for importing it in the Neo4j Console :
See the results in your graph browser !
Quick configuration precisions:
- When defining properties types (like company, firstName, ...), these types refers to the standard faker types.
- count define the number of nodes you want
- relationship mode : 1 for only one existing relationship per node, random for randomized number of relationships
Properties parameters
Sometimes you'll maybe want to define some parameters for your properties, for e.g. to have a realistic date of birth for Person nodes,
you may want to be sure that the date will be between 50 years ago and 18 years ago if you set dob for people working for a company.
Define your graph model in Cypher :
For a complete description, see the Graphgen documentation
Generating the graph from a cypher pattern :
Or you may want to import the graph directly in an accessible neo4j database :
Development
Contributions, feedbacks, requirements welcome. Shoot me by opening issues or PR or on twitter : @ikwattro
All versions of neogen with dependencies
fzaninotto/faker Version ~1.4
symfony/console Version ~2.5
symfony/yaml Version ~2.5
symfony/finder Version ~2.5
symfony/dependency-injection Version ~2.5
neoxygen/neoclient Version ~2.0
ikwattro/faker-extra Version ~1.0