hyperedge Interface

public interface hyperedge

Interface for the constructor of the hyperedge type. It receives the order OR a list of nodes and returns a new hyperedge object.


Module Procedures

private elemental function hyperedge_new(order) result(edge)

Constructor for the hyperedge type. It initializes the ID and order of the hyperedge, and allocates memory for the nodes array. @param order The order of the hyperedge.

Note

This subroutine allocates memory for the nodes array based on the provided size.

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: order

Return Value type(hyperedge_t)

private function hyperedge_new_from_nodes_list(nodes) result(edge)

Constructor for the hyperedge type from a list of nodes.

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: nodes(:)

Return Value type(hyperedge_t)