本文整理汇总了PHP中graph::toSVGTime方法的典型用法代码示例。如果您正苦于以下问题:PHP graph::toSVGTime方法的具体用法?PHP graph::toSVGTime怎么用?PHP graph::toSVGTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类graph
的用法示例。
在下文中一共展示了graph::toSVGTime方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: graph
function testGraphFull1()
{
$graph = new graph();
$graph->createEdges(array(new edge('t1', 't2'), new edge('t2', 't3')));
$node1 = new node('t1', array(new prologAtom('data1')));
$node2 = new node('t2', array(new prologAtom('data2')));
$graph->addNode($node1);
$graph->addNode($node2);
$this->assertEqual($graph->findNode(''), '');
$this->assertIsA($graph->findNode('t1'), 'node');
$this->assertIsA($graph->findNode('t2'), 'node');
$this->assertEqual($graph->findNode('t1'), $node1);
$this->assertEqual($graph->findNode('t2'), $node2);
$this->assertNotNull($graph->edges);
$this->assertNotEqual($graph->toSVG(), '');
$this->assertNotEqual($graph->toSVGTime(), '');
$this->assertEqual($graph->findConnections(''), '');
print_r($graph->getEdges());
$this->assertEqual($graph->getEdges(), array(new edge('t1', 't2'), new edge('t2', 't3')));
}