Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package name to graphp/graph and adjust namespace to Graphp\Graph #166

Merged
merged 1 commit into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2012+ Christian Lück (Maintainer)
Copyright (c) 2012+ Fhaculty Core Team and our awesome contributors <https://github.com/clue/graph/graphs/contributors>
Copyright (c) 2012+ Graphp Core Team and our awesome contributors <https://github.com/clue/graph/graphs/contributors>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Once [installed](#install), let's initialize a sample graph:
<?php
require_once 'vendor/autoload.php';

use \Fhaculty\Graph\Graph as Graph;
use \Graphp\Graph\Graph as Graph;

$graph = new Graph();

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "clue/graph",
"name": "graphp/graph",
"type": "library",
"description": "GraPHP is the mathematical graph/network library written in PHP.",
"keywords": [
Expand All @@ -13,12 +13,12 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Fhaculty\\Graph\\": "src/"
"Graphp\\Graph\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Fhaculty\\Graph\\Tests\\": "tests/"
"Graphp\\Graph\\Tests\\": "tests/"
}
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/AttributeAware.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Attribute;
namespace Graphp\Graph\Attribute;

/**
* Implemented by any entity that is aware of additional attributes
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/AttributeBag.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Attribute;
namespace Graphp\Graph\Attribute;

/**
* Interface to container that represents multiple attributes
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/AttributeBagContainer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Attribute;
namespace Graphp\Graph\Attribute;

/**
* A fairly standard AttributeBag container.
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/AttributeBagNamespaced.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Attribute;
namespace Graphp\Graph\Attribute;

/**
* An attribute bag that automatically prefixes a given namespace.
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/AttributeBagReference.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Attribute;
namespace Graphp\Graph\Attribute;

/**
* The basic attribute bag, but using a reference to the base attribute array.
Expand Down
24 changes: 12 additions & 12 deletions src/Edge/Base.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Fhaculty\Graph\Edge;

use Fhaculty\Graph\Attribute\AttributeAware;
use Fhaculty\Graph\Attribute\AttributeBagReference;
use Fhaculty\Graph\Exception\BadMethodCallException;
use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Exception\LogicException;
use Fhaculty\Graph\Exception\RangeException;
use Fhaculty\Graph\Graph;
use Fhaculty\Graph\Set\Vertices;
use Fhaculty\Graph\Set\VerticesAggregate;
use Fhaculty\Graph\Vertex;
namespace Graphp\Graph\Edge;

use Graphp\Graph\Attribute\AttributeAware;
use Graphp\Graph\Attribute\AttributeBagReference;
use Graphp\Graph\Exception\BadMethodCallException;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Exception\LogicException;
use Graphp\Graph\Exception\RangeException;
use Graphp\Graph\Graph;
use Graphp\Graph\Set\Vertices;
use Graphp\Graph\Set\VerticesAggregate;
use Graphp\Graph\Vertex;

abstract class Base implements VerticesAggregate, AttributeAware
{
Expand Down
8 changes: 4 additions & 4 deletions src/Edge/Directed.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Fhaculty\Graph\Edge;
namespace Graphp\Graph\Edge;

use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Set\Vertices;
use Fhaculty\Graph\Vertex;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Set\Vertices;
use Graphp\Graph\Vertex;

class Directed extends Base
{
Expand Down
8 changes: 4 additions & 4 deletions src/Edge/Undirected.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Fhaculty\Graph\Edge;
namespace Graphp\Graph\Edge;

use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Vertex;
use Fhaculty\Graph\Set\Vertices;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Vertex;
use Graphp\Graph\Set\Vertices;

class Undirected extends Base
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph;
namespace Graphp\Graph;

interface Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class BadMethodCallException extends \BadMethodCallException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/DomainException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class DomainException extends \DomainException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class InvalidArgumentException extends \InvalidArgumentException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class LogicException extends \LogicException implements Graph\Exception
{
Expand Down
6 changes: 3 additions & 3 deletions src/Exception/NegativeCycleException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph\Walk;
use Fhaculty\Graph;
use Graphp\Graph\Walk;
use Graphp\Graph;

class NegativeCycleException extends UnexpectedValueException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/OutOfBoundsException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class OutOfBoundsException extends \OutOfBoundsException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/OverflowException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class OverflowException extends \OverflowException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/RangeException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class RangeException extends \RangeException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class RuntimeException extends \RuntimeException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/UnderflowException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class UnderflowException extends \UnderflowException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/UnexpectedValueException.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exception;
namespace Graphp\Graph\Exception;

use Fhaculty\Graph;
use Graphp\Graph;

class UnexpectedValueException extends \UnexpectedValueException implements Graph\Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exporter/ExporterInterface.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Fhaculty\Graph\Exporter;
namespace Graphp\Graph\Exporter;

use Fhaculty\Graph\Graph;
use Graphp\Graph\Graph;

interface ExporterInterface
{
Expand Down
32 changes: 16 additions & 16 deletions src/Graph.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?php

namespace Fhaculty\Graph;

use Fhaculty\Graph\Attribute\AttributeAware;
use Fhaculty\Graph\Attribute\AttributeBagReference;
use Fhaculty\Graph\Edge\Base as Edge;
use Fhaculty\Graph\Edge\Directed as EdgeDirected;
use Fhaculty\Graph\Exception\BadMethodCallException;
use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Exception\OutOfBoundsException;
use Fhaculty\Graph\Exception\OverflowException;
use Fhaculty\Graph\Exception\RuntimeException;
use Fhaculty\Graph\Exception\UnderflowException;
use Fhaculty\Graph\Set\DualAggregate;
use Fhaculty\Graph\Set\Edges;
use Fhaculty\Graph\Set\Vertices;
use Fhaculty\Graph\Set\VerticesMap;
namespace Graphp\Graph;

use Graphp\Graph\Attribute\AttributeAware;
use Graphp\Graph\Attribute\AttributeBagReference;
use Graphp\Graph\Edge\Base as Edge;
use Graphp\Graph\Edge\Directed as EdgeDirected;
use Graphp\Graph\Exception\BadMethodCallException;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Exception\OutOfBoundsException;
use Graphp\Graph\Exception\OverflowException;
use Graphp\Graph\Exception\RuntimeException;
use Graphp\Graph\Exception\UnderflowException;
use Graphp\Graph\Set\DualAggregate;
use Graphp\Graph\Set\Edges;
use Graphp\Graph\Set\Vertices;
use Graphp\Graph\Set\VerticesMap;

class Graph implements DualAggregate, AttributeAware
{
Expand Down
2 changes: 1 addition & 1 deletion src/Set/DualAggregate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

/**
* DualAggregate provides access to both its Vertices and its Edges
Expand Down
10 changes: 5 additions & 5 deletions src/Set/Edges.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

use Fhaculty\Graph\Edge\Base as Edge;
use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Exception\OutOfBoundsException;
use Fhaculty\Graph\Exception\UnderflowException;
use Graphp\Graph\Edge\Base as Edge;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Exception\OutOfBoundsException;
use Graphp\Graph\Exception\UnderflowException;

/**
* A Set of Edges
Expand Down
2 changes: 1 addition & 1 deletion src/Set/EdgesAggregate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

/**
* Basic interface for every class that provides access to its Set of Edges
Expand Down
10 changes: 5 additions & 5 deletions src/Set/Vertices.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

use Fhaculty\Graph\Vertex;
use Fhaculty\Graph\Exception\InvalidArgumentException;
use Fhaculty\Graph\Exception\OutOfBoundsException;
use Fhaculty\Graph\Exception\UnderflowException;
use Graphp\Graph\Vertex;
use Graphp\Graph\Exception\InvalidArgumentException;
use Graphp\Graph\Exception\OutOfBoundsException;
use Graphp\Graph\Exception\UnderflowException;

/**
* A Set of Vertices
Expand Down
2 changes: 1 addition & 1 deletion src/Set/VerticesAggregate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

/**
* Basic interface for every class that provides access to its Set of Vertices
Expand Down
6 changes: 3 additions & 3 deletions src/Set/VerticesMap.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Fhaculty\Graph\Set;
namespace Graphp\Graph\Set;

use Fhaculty\Graph\Exception\OutOfBoundsException;
use Fhaculty\Graph\Vertex;
use Graphp\Graph\Exception\OutOfBoundsException;
use Graphp\Graph\Vertex;

/**
* A set of Vertices that are already stored in a vertex ID => Vertex instance mapping array
Expand Down
Loading