<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Lake networks and connectivity metrics for the conterminous U.S. ( &lt;scp&gt;LAGOS‐US NETWORKS&lt;/scp&gt; v1)</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>10/01/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10296845</idno>
					<idno type="doi">10.1002/lol2.10204</idno>
					<title level='j'>Limnology and Oceanography Letters</title>
<idno>2378-2242</idno>
<biblScope unit="volume">6</biblScope>
<biblScope unit="issue">5</biblScope>					

					<author>Katelyn B. King</author><author>Qi Wang</author><author>Lauren K. Rodriguez</author><author>Kendra S. Cheruvelil</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>LAGOS-US NETWORKS v1 module contains four data tables, one of which includes derived surface-water connectivity metrics for lakes (n = 86,511 lakes &#8805; 1 ha in surface area) and networks (n = 898) within the conterminous United States, including dams. The NETWORKS module also includes a flow table as well as a bidirectional and a unidirectional distance table that provide the stream course distances between every connected lake. Finally, this module includes a detailed User Guide.</p><p>Freshwater network structure is an important area of research for aquatic ecologists. Knowing the number of and distance to upstream and downstream lakes, the position of a lake in a network, as well as the complexity of lake networks can help scientists better understand and predict the movement of materials and biota within networks. Studies have shown that surface-water connectivity affects lake and stream characteristics such as water chemistry <ref type="bibr">(Wollheim et al. 2008;</ref><ref type="bibr">Sadro et al. 2012;</ref><ref type="bibr">Soranno et al. 2015;</ref><ref type="bibr">Schmadel et al. 2018</ref>) and biotic diversity <ref type="bibr">(Olden et al. 2001;</ref><ref type="bibr">Beisner et al. 2006;</ref><ref type="bibr">King et al. 2021a)</ref>. Research also shows that incorporating both streams and lakes into measures of connectivity gives a more accurate representation of nutrient processing and biotic movements <ref type="bibr">(Jones 2010</ref>) than using only one freshwater type (lakes or streams).</p><p>One way to characterize freshwater surface connectivity is to create metrics for surface-water networks or a series of connected lakes and stream reaches. These metrics can incorporate the number of and distance to surface-water connections as well as the waterbody position within a network (i.e., landscape position). For example, <ref type="bibr">Olden et al. (2001)</ref> investigated how a suite of connectivity metrics such as upstream and downstream watercourse distances between lakes, watercourse distance through an intermediate lake, and stream gradient corresponded to fish community composition. They found that different connectivity metrics were important for different lakes. Popular stream network position metrics like stream Strahler order <ref type="bibr">(Strahler 1957</ref>) and link magnitude <ref type="bibr">(Shreve 1967)</ref> have been used to capture the spatial arrangement of a stream reach within a river network. Similarly, lake position within a network has been characterized with lake network number (LNN) and lake order (LO), a lake's position in a lake chain and the Strahler order of the outflowing stream, respectively <ref type="bibr">(Kling et al. 2000;</ref><ref type="bibr">Riera et al. 2000;</ref><ref type="bibr">Martin and Soranno 2006)</ref>. The position of a lake in the network has been shown to be correlated with both abiotic <ref type="bibr">(Kling et al. 2000)</ref> and biotic <ref type="bibr">(Kratz et al. 1997)</ref> properties. However, connectivity metrics that describe surface-water network structure by incorporating both streams and lakes are needed to better understand the influence of connectivity (or isolation) on biotic and abiotic lake properties.</p><p>The best approach to quantify surface-water networks depends on both the research question and focus of the study (e.g., biota vs. nutrients, streams vs. lakes) as well as the spatial scale of interest. For example, when working at broad scales (regions to continents) and including both streams and lakes, it is difficult to balance accurate estimates of surface-water connectivity and computational challenges. Graph theory approaches, which model pairwise relationships between nodes (lakes or streams) connected to each other by edges (streams), provide ways to overcome computational challenges because they have minimal data requirements while still providing accurate estimates of connections between waterbodies <ref type="bibr">(Calabrese and Fagan 2004)</ref>. However, because these metrics can be computationally difficult, studies that have applied graph theory to lakes are often restricted to a few watersheds <ref type="bibr">(Bishop-Taylor et al. 2015;</ref><ref type="bibr">Saunders et al. 2016)</ref>.</p><p>Our research fills the need for accessible and comprehensive lake networks and connectivity metrics at the national scale. A recent study using the National Hydrography Dataset's (NHD) high-resolution lakes (&gt; 0.5 ha) and medium resolution permanent rivers and streams classified river networks into four types based on surface connections across the conterminous United States (U.S.; <ref type="bibr">Gardner et al. 2019</ref>). This study demonstrated how lake/reservoir abundance and size scale with stream order and provided a first step in incorporating lakes into river networks at the national scale <ref type="bibr">(Gardner et al. 2019)</ref>. Our research complements their study by focusing on lake networks and making the data and code publicly accessible for further research and applications.</p><p>This data paper presents the LAGOS-US NETWORKS v1 data module that identifies a total of 898 networks that include 86,511 lakes &#8805; 1 ha in surface area (more detailed description of methods can be found in the User Guide). The number of lakes in a network ranges from 2 to 32,811 lakes, the largest network being the Mississippi River basin (Fig. <ref type="figure">1</ref>). NETWORKS was created using a graph theory framework to generate lake networks for the conterminous U.S., where lakes and streams were the nodes and connections between them were the edges (sensu <ref type="bibr">Urban and Keitt 2001;</ref><ref type="bibr">Eros et al. 2012)</ref>. We defined lake networks as a set of lakes connected by ephemeral or permanent streams, regardless of the directionality of those connections (e.g., upstream, downstream, or both) and we excluded connections through the Great Lakes, oceans, and estuaries. The NET-WORKS module includes all lakes that are connected to other lakes (i.e., no isolated lakes or lakes only connected to streams are included), which is about 18% of all lakes &#8805; 1 ha in surface area in the study extent <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref>. This proportion is comparable to similar studies that found 33% <ref type="bibr">(Hill et al. 2018</ref>) and 15% <ref type="bibr">(Gardner et al. 2019)</ref> of NHD lakes to be in-network.</p><p>From these networks, we derived a suite of surface connectivity metrics, including metrics for connections among lakes (both upstream and downstream), dam metrics, and network position (spatial orientation of the lake within its network) for connected lakes. We also included upstream and downstream distances (bidirectional) and just downstream distance (unidirectional) between every pair of connected lakes and a flow table that describes the flow path direction (e.g., FROM and TO) between two flowlines (i.e., streams and artificial flowlines through lakes) that was used to create the networks and information in the other three tables. All data in the NETWORKS module can be linked to individual lakes in the LAGOS-US database platform via "lagoslakeid" <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref> or linked to the medium resolution NHDplusV2 via "nhdplusv2_comid" (U.S. Geological Survey 2019). Finally, we include a detailed User Guide for NETWORKS that provides more information on methods for this module.</p><p>NETWORKS is unique because it identifies lake networks for the conterminous U.S. that include lakes located on different tributaries that are connected through a downstream confluence and provides a suite of connectivity metrics at the individual lake and network scale. Thus, the NETWORKS module can be used in conjunction with other abiotic and biotic datasets to further ecological prediction, such as how nutrients or contaminants move through a network, changes in invasive species distributions, or how biota might move up or downstream in response to climate change (for further discussion of uses, see section "Data Use and Recommendations for Reuse"). These networks will help advance our understanding of how surface-water connections and network position affect abiotic and biotic properties of lakes at regional to continental scales.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Data description</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Overview of data sources</head><p>The LAGOS-US NETWORKS module was created using a variety of existing datasets. The lake networks were derived from the lake and stream flow tables of the medium resolution U.S. National Hydrography Dataset (NHDplusV2) downloaded 05 August 2019 (U.S. Geological Survey 2019). NHDplusV2 is a national geospatial surface-water dataset that integrates information from the NHD, the National Elevation Dataset, and the Watershed Boundary Dataset at a 1 : 100,000-scale. Lakes were assigned both their "nhdplusv2_comid," which are unique identifiers for lakes from the NHDplusV2 dataset and their "lagoslakeid," which are unique identifiers from LAGOS-US LOCUS v1 data module <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref>. LAGOS-US LOCUS includes lakes and reservoirs &#8805; 1 ha from the high-resolution NHD.</p><p>In order to include potential barriers to connectivity, we spatially joined the NHDplusV2 lakes and streams to dams from a variety of data sources. The National Anthropogenic Barrier Dataset (NABD) <ref type="bibr">(Ostroff et al. 2013</ref>) is a dataset of large, anthropogenic barriers that were originally spatially linked to the NHDPlusV1 data product to facilitate analyses based on the NHD and National Inventory of Dams <ref type="bibr">(NID 2015)</ref>. However, we used a modified NABD that was augmented by <ref type="bibr">Cooper et al. (2017)</ref> with 170 additional dams from the USFWS Fish Passage Decision Support Tool and that included dam removals since the NABD was published as listed in the 2018 American Rivers dam removal database (American Rivers 2019). This modified NABD dataset was used to establish the population of dams (n = 49,525) that reside on streams or lakes and calculate dam metrics for all lakes and networks within the LAGOS-US NETWORKS module (Fig. <ref type="figure">2</ref>). The NETWORKS module includes a source table that can be linked to the data tables. See the User Guide that accompanies these data for additional details <ref type="bibr">(King et al. 2021b)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Overview of data tables and variables</head><p>The NETWORKS module contains two metadata tables, four data tables, and a detailed User Guide (Fig. <ref type="figure">3</ref>). The metadata tables are (1) a data dictionary that provides a definition for each variable name or column of every table in the module and includes important information such as units, and ( <ref type="formula">2</ref>) a source table that includes a description of the data sources used to create NETWORKS. The four data tables contain the key variables and include (1) a lake connectivity metrics table (nets_networkmetrics_medres) that has lake identifier information, upstream and downstream connectivity metrics, upstream and downstream dam metrics, network position, and network metrics (Table <ref type="table">1</ref>), (b, c) two distance tables (nets_uninetworkdistance_medres, nets_binetworkdistance_medres) that include lake identifier information as well as upstream and downstream distances between pairs of connected lakes using either a unidirectional graph <ref type="table">(Table 2) or a bidirectional graph  (Table 3),</ref> and<ref type="table">(d) the modified flow table (nets_flow_medres)</ref> with NHDplusV2 common identifiers for NHDFlowlines that describes the flow path direction between two flowlines (e.g., TO and FROM) and that was used to create the networks and metrics (Table <ref type="table">4</ref>). See the User Guide that accompanies these data for additional details <ref type="bibr">(King et al. 2021b)</ref>.</p><p>Figures <ref type="figure">4</ref><ref type="figure">5</ref><ref type="figure">6</ref>highlight some variables from the nets_ networkmetrics_medres table. For example, we found that the majority of lakes are near to each other along the network (nearest bidirectional lake median 4.40 km; Table <ref type="table">1</ref>); however, the nearest distance to a downstream lake can be up to 200 km, with lakes in the Mississippi network even further than that (Fig. <ref type="figure">4a</ref>). Similarly, many lakes have zero dams upstream or downstream (median 0.00; Table <ref type="table">1</ref>), but in the Mississippi River basin some have &gt; 10 dams downstream (Fig. <ref type="figure">4b</ref>). The majority of U.S. lakes have a low LNN (a lake's position in a lake chain; <ref type="bibr">Martin and Soranno 2006)</ref>, indicating a high amount of network branching rather than long, </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>King et al.</head><p>U.S. lake networks linear lake chains (Fig. <ref type="figure">5a</ref>). Higher values of LNN appear in the upper-midwest, west, and south-central U.S. LO (the Strahler order of the outflowing stream; <ref type="bibr">Riera et al. 2000)</ref> is fairly evenly distributed across the U.S. and the majority of lakes tend to be lower order (Fig. <ref type="figure">5b</ref>). LNN ranges from 1 to 50 and LO ranges from 0 to 9 (Table <ref type="table">1</ref>).</p><p>Although the Mississippi River network includes 32,811 lakes (Fig. <ref type="figure">6a</ref>), the majority of lake networks have &lt; 100 lakes and over a third consist of only two connected lakes (Fig. <ref type="figure">6b</ref>; Table <ref type="table">1</ref>). The network average distance between lakes ranges from less than 1 to over 1500 km, with a median distance of approximately 7 km (Fig. <ref type="figure">6c</ref>; Table <ref type="table">1</ref>). The network average lake area ranges from just over 1 to about 47,000 ha, with a median of approximately 18 ha (Fig. <ref type="figure">6d</ref>; Table <ref type="table">1</ref>). The number of dams in a network ranges from 0 to about 25,000 (the Mississippi River network), with the majority of networks including 1 dam (Fig. <ref type="figure">6e</ref>; Table <ref type="table">1</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Overview of data access</head><p>LAGOS-US NETWORKS v1 is made up of metadata and data tables that are csv files as well as a User Guide in pdf form, all of which are available for public download via the EDI repository <ref type="bibr">(King et al. 2021b)</ref>. There is also code available on GitHub for those who would like to reproduce, extend, or adapt our networks <ref type="bibr">(Wang and King 2020</ref>) and an R package that can be used to download and link NETWORKS with the other LAGOS-US core and extension modules (lagosus; Stachelek 2020). When NETWORKS data are included in analyses, users should cite them as well as this data paper that describes the motivation and context for creating the NET-WORKS module.</p><p>NETWORKS v1 data and documentation: King, K., Q. Wang, L. K. Rodriguez, M. Haite, L. Danila, T. Pang-Ning, J. Zhou, and K. S. <ref type="bibr">Cheruvelil. 2021</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Methods</head><p>This section outlines the methods used to create lake networks as well as derive connectivity metrics in LAGOS-US NETWORKS v1. We also explain how dam data from the NABD was linked to our networks to add potential barriers to connectivity. For further technical detail on this process, we have submitted data documentation in the form of a User Guide along with the metadata and datasets on EDI <ref type="bibr">(King et al. 2021b</ref>) and users can consult the published code for further extension of our methods <ref type="bibr">(Wang and King 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Creating lake networks</head><p>Lake networks across the continental U.S. were created using the flow table from the medium resolution NHDPlusV2 database (U.S. Geological Survey 2019). The flow table from NHDPlusV2 consisted of every flowline (streams and artificial flowlines that go through lakes) either in the FROM column or TO column, denoting a direction of flow from one line to the other, as well as the distance for each connection between two flow lines. Prior to creating a graph, we removed several connections. We removed coastline connections (Fcode 56600; <ref type="bibr">McKay et al. 2012</ref>) so that the connectivity  lake_nets_lakeorder Lake order (LO) follows the Strahler stream order of the outflowing stream, where the higher order stream is chosen if more than one outlet occurs <ref type="bibr">(Riera et al. 2000;</ref><ref type="bibr">Martin and Soranno 2006)</ref>.</p><p>The exceptions are that headwater lakes are 0 and terminal lakes receive the order of the highest inflowing stream. NA 0.00 1.00 1.09 9.00 lake_nets_lnn Lake network number (LNN) is the position of a lake within the network in reference to other lakes. The lake at the top of a network (i.e., no upstream lakes) will be 1, the next lake downstream will be 2, etc. If a lake has more than one lake upstream, it will take the higher LNN.</p><p>NA We applied a graph theory framework to create lake networks from the nets_flow_medres data table. Graphs are mathematical structures made up of "nodes" and "edges" used to model pairwise relations between objects (nodes) <ref type="bibr">(Eros et al. 2012</ref>). In our case, we were interested in modeling the pairs of lakes that are connected by streams (edges). We created lake networks using bidirectional graphs, which considered both downstream and upstream connections, using both lakes and streams as nodes (Fig. <ref type="figure">7a</ref>). We used Dijkstra's algorithm <ref type="bibr">(Cormen et al. 2001)</ref> to traverse the graph both upstream and downstream starting at a given lake. During the traversal, if a node was a stream, we continued traversing the graph until the node was a lake. We saved the distance from the given lake to this lake and stopped traversing. If there were multiple paths to connect the same two lakes, the algorithm chose and saved the path with the shortest length. This approach produced all the connections of the given lake to its neighbor lakes. This process was repeated for every lake until the connections and stream course distances between all lakes were known. A network includes all lakes that are connected to another lake up or downstream, thus including lakes located on different tributaries that are connected through a </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Variable name</head><p>Variable description Units lagoslakeid LAGOS lake identifier of the "from" lake that is connected to lagoslakeid_to using a unidirectional graph (traversing the network downstream).</p><p>Null to_lagoslakeid Identifier of lake 2 (lagoslakeid) connected to lake 1 using a unidirectional graph (traversing the network downstream).</p><p>Null streamlength_down_km Distance downstream from lake 1 (lagoslakeid) to lake 2 (lagoslakeid_to) using a unidirectional graph (traversing the network downstream).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Kilometers</head><p>Table <ref type="table">3</ref>. Summary of variables in the nets_binetworkdistance_ medres table (n = 39,498,506 lake pairs; file size ~1.9 GB).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Variable name</head><p>Variable description Units lagoslakeid LAGOS lake identifier of the "from" lake that is connected to lagoslakeid_to using a bidirectional graph (traversing the network both downstream and upstream).</p><p>Null to_lagoslakeid Identifier of lake 2 (lagoslakeid) connected to lake 1 using a bidirectional graph (traversing the network both downstream and upstream).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Null streamlength_total_km</head><p>Total stream distance from lake 1 to lake 2 (as indicated by lagoslakeid) using a bidirectional graph.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Kilometers streamlength_up_km</head><p>Distance upstream from lake 1 to lake 2 (as indicated by lagoslakeid) using a bidirectional graph.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Kilometers</head><p>streamlength_down_km Distance downstream from lake 1 to lake 2 (as indicated by lagoslakeid) using a bidirectional graph. downstream confluence (Fig. <ref type="figure">7c,</ref><ref type="figure">d</ref>). We assigned each of these networks a unique identification number (net_id). All of the stream course distances between pairs of lakes can be found in the nets_binetworkdistance_medres. The artificial flowline distances through lakes were not included in these distances. This table includes upstream, downstream, and total distance between two lakes. The total distance may be smaller than the sum of the upstream and downstream distances due to the absence of data on stream reach intersection. For example, it is unknown whether one stream reach intersects the top, middle, or bottom of another reach; therefore, an intersecting stream reach was only counted once for the total distance, but was included in both the downstream and upstream distance columns (see the dataset User Guide, King et al. 2021b for more details).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Kilometers</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Linking dams to lake networks</head><p>The NABD is a dataset of large, anthropogenic barriers that are spatially linked to the NHDPlusV1 data product to facilitate analyses based on the NHD and National Inventory of Dams <ref type="bibr">(Ostroff et al. 2013)</ref>. <ref type="bibr">Cooper et al. (2017)</ref> added 170 additional dams to this database from the USFWS Fish Passage Decision Support Tool and excluded ~250 dams that were identified as having been removed since the NABD was published (American Rivers 2019). The 49,525 dams were linked to the NHDPlusV2 flowlines and were incorporated into networks. Dams were assigned to a lagoslakeid if they were less than 50 m from a lake <ref type="bibr">(Polus et al. In preparation)</ref>. Dams that were directly on (or in) a lake could not be considered as up-or downstream because they were on the node and therefore, did not have a direction in reference to that node. Therefore, these dams were assigned as upstream or downstream from a lake using two methods:</p><p>1. Using ArcGIS, lake inlets and outlets were identified using the start and end vertices associated with the artificial flowlines and extracted as points representing inlets and outlets. For each dam point location, the nearest three inlets or outlets (combined) were identified using Euclidean distance in the ArcGIS GenerateNear tool. If both inlets and outlets for the same lake were very near each other or an inlet or outlet for another lake was very near, the dam position was assigned for manual review. Methods are available as Python code within the LAGOS GIS Toolbox (<ref type="url">http://github.com/cont-limno/LAGOS_GIS_Toolbox</ref>; nat-ional_outlets_inlets.py, dams_link_lake_junctions.py). There were 11,551 dams that were assigned upstream or downstream of a lake using this method. 2. The remaining dams (n = 1079) that could not be identified by the automated process were then manually classified by visual inspection of the dam location in comparison to the NHD polygons and flowlines and manually assigned as either on the upstream or downstream side of a lake.</p><p>Two data flags were created during the process of linking dams to lakes and streams/rivers. These flags were for cases when a dam fell onto an artificial flowline contained within a lake or when multiple dams fell on the same lake (Table <ref type="table">5</ref>; section on informational flags).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Quantifying lake and network connectivity metrics</head><p>After creating the networks, several metrics were derived at the lake scale using a unidirectional graph. Unidirectional graphs traverse the network downstream only (Fig. <ref type="figure">7b</ref>). We used Dijkstra's algorithm <ref type="bibr">(Cormen et al. 2001)</ref> to traverse the graph downstream starting at a given lake. The same process was used for the unidirectional graph that was used for the bidirectional graph described in the above section "Creating lake networks." The stream course distances between two lakes using a unidirectional graph can be found in the nets_uninetworkdistance_medres table.</p><p>The metrics for the nearest lake distance were determined by comparing the distance between each lake and all of its neighboring lakes and choosing the nearest distance upstream Fig. <ref type="figure">6</ref>. Network metrics. Network metric summaries of (a) frequency distribution of the number of lakes in a network, (b) frequency distribution of the number of lakes in networks with less than 100 lakes, (c) boxplot of the average distance (km) between lakes in a network, (d) boxplot of the average lake area (ha) in a network, and (e) boxplot of the number of dams in the network. See Table <ref type="table">1</ref> for summary statistics. Note that many networks have 0 dams, however, because this plot was log transformed zeros were not included in this plot.</p><p>and the nearest distance downstream from the unidirectional graph. Note that not all lakes have both an upstream and downstream lake. The number of directly connected lakes upstream was computed as the indegree of a lake, i.e., the number of lakes upstream only connected through streams flowing into the lake. Similarly, the number of directly connected downstream lakes was calculated using the outdegree of a lake, i.e., lakes directly connected through streams flowing out of a lake. There were instances when a lake did not have any directly connected upstream or directly connected downstream lakes because the lake was only connected through the bidirectional graph to the lake network (n = 7617). Therefore, we also included a metric for the nearest lake using bidirectional distance. These instances are easily identifiable because these lakes only have a nearest bidirectional distance and do not have a nearest downstream or nearest upstream lake distance.</p><p>Two metrics that describe the position of a lake within the network and landscape were derived using a unidirectional graph: LNN and LO <ref type="bibr">(Riera et al. 2000;</ref><ref type="bibr">Martin and Soranno 2006</ref>) (Fig. <ref type="figure">8</ref>). LNN was computed by starting at the first lake in a network (e.g., no upstream lakes) and assigning that lake a "1," then moving downstream to another lake and assigning that lake a "2," and so on throughout the network. Therefore, multiple lakes in a network could be assigned a "1" if they do not have any upstream lakes. Lakes with multiple upstream lakes were assigned the larger sequential number <ref type="bibr">(Martin and Soranno 2006)</ref>. LO was assigned using the Strahler stream order from the NHDplusV2 attributes. LO followed the Strahler stream order of the outflowing stream, where the higher order stream was chosen if more than one outlet was present <ref type="bibr">(Riera et al. 2000;</ref><ref type="bibr">Martin and Soranno 2006)</ref>. There were two exceptions to this: headwater lakes were assigned a "0" and terminal lakes received the Strahler order of the inflowing stream <ref type="bibr">(Riera et al. 2000;</ref><ref type="bibr">Martin and Soranno 2006)</ref>. We considered inflowing streams for LO calculations to differentiate between headwater lakes and lakes that had inflowing streams but not upstream lakes. There were instances when a loop between two lakes occurred (0.02% of all connections), for example lake A flowed to lake B and lake B flowed back to lake A. In these instances, we randomly removed one connection.</p><p>Several dam metrics were derived that characterize barriers to connectivity. The depth first search (DFS; <ref type="bibr">Cormen et al. 2001)</ref> algorithm was used to traverse each lake-stream network to find all of the upstream dams and downstream dams. Dijkstra's algorithm was used to compute the distance to the nearest upstream and downstream dams <ref type="bibr">(Cormen et al. 2001</ref>). Because we used a graph to create the network, the algorithm did not have the exact location of the dam on the stream reach, just the flowline it was located on. Therefore, when deriving the metrics for the nearest dam, the entire stream reach with the dam was included in the distance calculation. Thus, there were instances when two or more dams fell on the same stream flowline (8.7% occurrence). In these instances, all dams were considered as the nearest up-or downstream dams, they were assigned the same distance from the lake, and all of the dam ids were included and separated by a semicolon. These instances are easily identifiable because more than one dam is listed in the lake_nets_nearestdamdown_id or lake_nets_nearestdamup_id column. Similarly, if multiple dams were on a lake (0.15% occurrence), all of the dams were considered the nearest dam, all dam ids were included, and dams Fig. <ref type="figure">7</ref>. Graph creation. A bidirectional graph (a) and unidirectional graph (b). An example of a lake network (c) compared to its corresponding bidirectional graph (d) to illustrate how networks were created and how upstream or downstream distances were defined in NETWORKS. The distance between lake C and lake D includes traversing the network downstream and then upstream. The stream course distance is used as a weight in panel (d); thicker connecting lines depict further distances. Panel (d) was made using the "igraph" package <ref type="bibr">(Csardi and Nepusz 2006)</ref>. located on a lake were assigned the distance of 0 km. Lakes with multiple dams on the lake were assigned a flag (Table <ref type="table">5</ref>; section on informational flags).</p><p>At the network scale, we traversed the completed lake networks using the DFS algorithm. This process calculated total lakes in each network, the average distances between lakes in a network, and the total number of dams in each lake network. The average area of the lakes in each network was calculated using lake area values from LAGOS-US LOCUS v1.0 polygons <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref>, grouping lakes by networks, and then using the Calculate Geometry tool in ArcGIS. See the User Guide for more methodological details.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Technical validation</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Informational flags</head><p>During construction of the module, we created a series of data flags that convey something about a data observation that may be of interest to users. These flags are all informational flags of general relevance to the data user and none of these flags are cautionary flags that indicate potential concerns for inclusion of particular data observations in analysis (Table <ref type="table">5</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Validation and quality control/quality assurance</head><p>The validation and quality control/quality assurance (QAQC) process was intended to ensure that the procedures used to create the values for NETWORKS variables resulted in the intended outcomes. We used two methods for validation and QAQC.</p><p>First, during the creation of the metrics, a simulation graph was created to validate the code. This simulation graph included paths that were unidirectional as well as bidirectional, multiple connections between lakes, lakes that were directly connected to other lakes without streams, and a Great Lake. Using this simulation graph, we checked that the distance between pairs of lakes was correct for downstream, upstream, and bidirectional connections. Then, we ensured that the code accurately selected the shorter distance if there were multiple connections between lakes for both the unidirectional and bidirectional connections. For lakes that did not have a stream connection between them, we ensured the code resulted in downstream and upstream distances of 0 km. Finally, we tested that the code ignored connections to the Great Lakes. Our team manually examined resulting networks and associated metrics using either ArcGIS 10.3 Desktop <ref type="bibr">(ESRI 2014)</ref> or the "hydrolinks" package <ref type="bibr">(Winslow et al. 2018)</ref>, which downloads and traverses paths for the medium resolution NHDplusV2 data to identify potential issues with either the input data or code. All solvable issues were reconciled and the networks or metrics were regenerated and retested until no further issues were found.</p><p>After metrics were quantified, we proceeded with a second phase of QAQC. We queried the NETWORKS metrics data table (nets_networkmetrics_medres) to: (1) identify potential data or geoprocessing issues and <ref type="bibr">(2)</ref> verify that data values were sensible (e.g., within expected ranges and expected completeness of data). These checks of individual variables assessed that the workflow generating data accurately reflected both the source data and the lake-specific values. For this process, the nets_networkmetrics_medres data table, in csv (comma-separated values) format, was imported by semiautomated R scripts that then summarized the data table, ensured comparability with the source GIS layer and data dictionary, summarized and mapped values for each variable, and automatically generated scores for three main evaluation criteria in a QAQC summary report were compared with the master list of variable names maintained in the metadata table data dictionary. Where there was no match, due to missing or incorrect names in either the data dictionary or the data table, a "Fail" warning was generated and the mismatches were listed in a table in the QAQC report. Where a "Fail" warning was generated, the data dictionary and data table variable names were examined and the name(s) in error were fixed as necessary. 3. Missing value: This check counted the number of observations with missing values, listed them, and produced maps of their location. A "Warn" evaluation was created for this criterion and variables were inspected to make sure there were no gaps in the input data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Data use and recommendations for reuse</head><p>NETWORKS is based on the medium resolution NHDplusV2 flow data because of limitations in computing capacity at the conterminous U.S. scale and because there are stream attributes in the medium resolution that are not available in the NHD highresolution data. Although the NHD high resolution includes smaller streams that connect some lakes that are not connected in the NHD medium resolution, the NHD high resolution separates some lakes that lie very close to a stream and considers them isolated when they are connected in the NHD medium resolution. Thus, there are benefits and challenges to basing networks and connectivity metrics on either version of the NHD.</p><p>We advise users to heed caution when combining the data in NETWORKS that are based on the medium resolution NHDplusV2 flow data with other resolutions of the NHD data or with derived data using other NHD versions. For example, when users combine NETWORKS with LAGOS-US, they should be aware that connectivity metrics will differ between the LOCUS and NETWORKS modules. Because NETWORKS is based on the medium resolution NHDplusV2 flow data, whereas LOCUS used the NHD high resolution <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref>, there may be lakes classified as connected in LOCUS that are not part of a network in NETWORKS or a lake classified as isolated in LOCUS might be part of a network in the NETWORKS module. Fig. <ref type="figure">8</ref>. Lake network number and lake order. Example of part of a lake network with lake network number (LNN) and lake order (LO) metrics for each lake.</p><p>We also wish to remind users that the metrics in NET-WORKS were derived only for lakes connected to other lakes. Therefore, the NETWORKS module does not include isolated lakes or lakes that are only connected to streams. Finally, networks that cross international boarders (e.g., Canada) may underestimate the number of upstream lakes, nearest upstream lake, and LNN, due to the nature of the dataset being constrained to the continental U.S.</p><p>The data in NETWORKS have not yet been used in research that has been published, but are being used in several ongoing efforts that will result in publications. For example, these metrics are being used to quantify how connectivity affects both stream and lake fish communities within and across networks. These data are also being used to determine how freshwater networks best facilitate latitudinal range shifts for species under ongoing climate change and if highly connected networks reside in protected areas. Finally, these data are being used for studies of invasive species movement and species distribution modeling.</p><p>NETWORKS will be a valuable data source for building broad-scale understanding of lake networks and the role of connectivity and barriers to connectivity for movement of abiotic materials and biota. Future users can combine these data with a variety of lake abiotic and biotic data, by linking the module with other LAGOS-US modules or to their study systems by using the NHD unique identifiers. For example, lake nutrient data from LAGOS-US-LIMNO could be linked with NETWORKS to investigate if lake network position has the same influence on lake nutrient concentrations across regions of the U.S. Likewise, water temperature, habitat data, and species observations could be linked to on-network lakes to investigate the available habitat suitability for species range shifts. Further, a management agency considering barrier removal could use the NETWORKS module to identify the entire network that would be affected by removal, including quantity of habitat available for migratory species or invasive species within the network.</p><p>In addition to the derived metrics, we have published the distance table, flow table, and our code to facilitate the extension of our work through the creation of additional metrics or modeling by future users. For example, the distance table and connectivity table could be joined to calculate the lake density (number of lakes per total distance in the network) or the lake distance table could be used for similar modeling techniques as those that have been developed for stream networks <ref type="bibr">(Peterson et al. 2007;</ref><ref type="bibr">Isaak et al. 2014)</ref>. Moreover, the distance and flow tables act as an "edge list" that can be used in the "igraph" package <ref type="bibr">(Csardi and Nepusz 2006)</ref> to calculate more graph metrics for specific lake networks (e.g., betweenness centrality, lakes that are the shortest path between many other lakes in the network). Finally, the flow table includes all individual stream reaches, so our code could be used to make similar metrics for streams or to incorporate more information on lakes or streams such as size, slope, or quality of habitat patch that would weight the links and nodes <ref type="bibr">(Eros et al. 2012)</ref> to answer a myriad of questions related to freshwater surface connectivity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Comparison with existing datasets</head><p>Although the majority of past studies fail to address surfacewater connectivity at the U.S. national scale, we provide an overview of preexisting datasets so that readers and users understand what connectivity information was available at the time of writing and how these previous methods align with or deviate from the networks and connectivity metrics in the NET-WORKS module.</p><p>Several connectivity datasets and tools for the conterminous U.S. exist for streams. For example, the NHD <ref type="bibr">(McKay et al. 2012)</ref> includes connectivity metrics such as a modified version of Strahler stream order. <ref type="bibr">Cooper and Infante (2017)</ref> have created dam metrics for streams in the conterminous U.S., which represent network fragmentation. However, these datasets and metrics do not include lakes and the stream networks stop at dams because they were created for biotic variables that cannot move past these barriers (e.g., fish). In addition, the U.S. Geological Survey has created a tool "Hydro Network-Linked Data Index (NLDI)" (<ref type="url">https://labs. waterdata.usgs.gov/about-nldi/index.html</ref>), which is a web application programming interface that can traverse upstream or downstream and link to other NHD or Water Quality Portal data. Similarly, the "nhdplusTools" R package <ref type="bibr">(Blodgett 2019</ref>) can be used to download NHD data and navigate upstream or downstream from a feature in the network. These tools may be useful for small-scale studies, but would take considerable time for broadscale research.</p><p>For lakes, there are a few broad-scale U.S. datasets that have important similarities and differences to NETWORKS. The LAGOS-US LOCUS module <ref type="bibr">(Smith et al. 2021;</ref><ref type="bibr">Cheruvelil et al. In press)</ref> includes several connectivity metrics, such as connectivity classes, the number of upstream lakes, upstream lake area, and stream density within a watershed. However, this dataset lacks downstream connections because it was created for abiotic variables. LakeCAT includes some metrics such as density of streams or dams within a catchment; however, they do not quantify lake or network connectivity metrics <ref type="bibr">(Hill et al. 2018)</ref>. <ref type="bibr">Fergus et al. (2017)</ref> provide connectivity information at the HUC 12 and HUC 8 scale, including lake, stream, and wetland densities and clusters, although this is only for the northeastern/northern midwestern region of the U.S. The "hydrolinks" package <ref type="bibr">(Winslow et al. 2018)</ref>, which was used for NETWORKS validation, is a tool for mapping connectivity; however, it only traverses upstream or downstream, it includes coastal lines and Great Lakes polygons, and it is best used for small extents because of computation time. Therefore, NETWORKS extends these datasets and tools by providing lake networks and connectivity metrics for the entire conterminous U.S. that include both lakes and streams and both upstream and downstream information that is useful for studying both abiotic and biotic properties of fresh waters.</p></div></body>
		</text>
</TEI>
