#include <Subgraph.h>
Public Member Functions | |
Subgraph (const Node *root) | |
Subgraph (const Node *root, const std::set< const Node * > &leaves) | |
const Node * | GetRoot () const |
const std::set< const Node * > & | GetLeaves () const |
int | GetDepth () const |
int | GetSize () const |
int | GetNodeCount () const |
float | GetPcfgScore () const |
bool | IsTrivial () const |
void | GetTargetLeaves (std::vector< const Node * > &) const |
Definition at line 36 of file Subgraph.h.
Moses::GHKM::Subgraph::Subgraph | ( | const Node * | root | ) | [inline] |
Definition at line 39 of file Subgraph.h.
Moses::GHKM::Subgraph::Subgraph | ( | const Node * | root, | |
const std::set< const Node * > & | leaves | |||
) | [inline] |
Definition at line 46 of file Subgraph.h.
int Moses::GHKM::Subgraph::GetDepth | ( | ) | const [inline] |
Definition at line 65 of file Subgraph.h.
Referenced by Moses::GHKM::ComposedRule::AttemptComposition().
const std::set<const Node *>& Moses::GHKM::Subgraph::GetLeaves | ( | ) | const [inline] |
Definition at line 62 of file Subgraph.h.
Referenced by Moses::GHKM::ComposedRule::ComposedRule(), Moses::GHKM::ComposedRule::CreateSubgraph(), and Moses::GHKM::ScfgRule::ScfgRule().
int Moses::GHKM::Subgraph::GetNodeCount | ( | ) | const [inline] |
Definition at line 71 of file Subgraph.h.
Referenced by Moses::GHKM::ComposedRule::AttemptComposition().
float Moses::GHKM::Subgraph::GetPcfgScore | ( | ) | const [inline] |
Definition at line 74 of file Subgraph.h.
const Node* Moses::GHKM::Subgraph::GetRoot | ( | ) | const [inline] |
Definition at line 59 of file Subgraph.h.
Referenced by Moses::GHKM::ComposedRule::AttemptComposition(), and Moses::GHKM::ComposedRule::CreateSubgraph().
int Moses::GHKM::Subgraph::GetSize | ( | ) | const [inline] |
Definition at line 68 of file Subgraph.h.
Referenced by Moses::GHKM::ComposedRule::AttemptComposition().
void Moses::GHKM::Subgraph::GetTargetLeaves | ( | std::vector< const Node * > & | result | ) | const |
Definition at line 29 of file Subgraph.cpp.
Referenced by Moses::GHKM::ScfgRule::ScfgRule().
bool Moses::GHKM::Subgraph::IsTrivial | ( | ) | const [inline] |
Definition at line 78 of file Subgraph.h.
Referenced by Moses::GHKM::AlignmentGraph::ExtractMinimalRules().