@@ -5,7 +5,7 @@ module vertex_m
55 ! ! date: 2020-Nov-30
66 ! ! license: Copyright (c) 2020-2021, Sourcery Institute, BSD 3-clause license Copyright (c) 2018 Jacob Williams
77 use jsonff, only : json_element_t, json_object_t, json_value_t
8- use iso_varying_string, only : varying_string, len
8+ use iso_varying_string, only : varying_string
99
1010 implicit none
1111
@@ -17,7 +17,7 @@ module vertex_m
1717 private
1818 integer , allocatable :: edges_(:)
1919 type (varying_string) :: label_
20- character (len = :), allocatable :: attributes_
20+ type (varying_string) :: attributes_
2121 contains
2222 procedure :: to_json
2323 procedure :: edges
@@ -87,14 +87,14 @@ elemental module function label(self) result(my_label)
8787 ! ! Vertex label getter
8888 implicit none
8989 class(vertex_t), intent (in ) :: self
90- character (len = len (self % label_) ) my_label
90+ type (varying_string ) my_label
9191 end function
9292
9393 elemental module function attributes(self) result(my_attributes)
9494 ! ! Vertex attributes getter
9595 implicit none
9696 class(vertex_t), intent (in ) :: self
97- character (len = len (self % attributes_) ) my_attributes
97+ type (varying_string ) my_attributes
9898 end function
9999
100100 end interface
0 commit comments